summaryrefslogtreecommitdiff
path: root/src/lib/tls/tortls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-03 12:52:43 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-03 12:52:43 -0400
commitdf98582851a92d514c04061a5e0ec762c17a0cfb (patch)
treeb52518169d65be6773a5abb606f3f56b5b8c9d25 /src/lib/tls/tortls.c
parentfe8f7748202816a9b90e04db542e449145283a66 (diff)
parent02a4442524d84ea7edf6e3f136017faa73452d92 (diff)
downloadtor-df98582851a92d514c04061a5e0ec762c17a0cfb.tar.gz
tor-df98582851a92d514c04061a5e0ec762c17a0cfb.zip
Merge remote-tracking branch 'github/ticket26626'
Diffstat (limited to 'src/lib/tls/tortls.c')
-rw-r--r--src/lib/tls/tortls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/tls/tortls.c b/src/lib/tls/tortls.c
index 3eee41bd16..1cd22a7eba 100644
--- a/src/lib/tls/tortls.c
+++ b/src/lib/tls/tortls.c
@@ -2442,8 +2442,8 @@ tls_get_write_overhead_ratio,(void))
if (total_bytes_written_over_tls == 0)
return 1.0;
- return U64_TO_DBL(total_bytes_written_by_tls) /
- U64_TO_DBL(total_bytes_written_over_tls);
+ return ((double)total_bytes_written_by_tls) /
+ ((double)total_bytes_written_over_tls);
}
/** Implement check_no_tls_errors: If there are any pending OpenSSL