summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-15 21:39:35 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-15 21:39:35 +0000
commitce51a1d349280394b940082b1a52a7aa41e0f0ec (patch)
treebc5b2263202f43f4c79e38ccc3ca341ee15f007a /src/or/hibernate.c
parentf53a269928105e9c300f764d06132257ebf080e6 (diff)
downloadtor-ce51a1d349280394b940082b1a52a7aa41e0f0ec.tar.gz
tor-ce51a1d349280394b940082b1a52a7aa41e0f0ec.zip
a changelog for write limiting. also, disable the "advertise dirport
until we reach our max bandwidth if it's tiny" trick now that we do the bandwidth self-test on boot. svn:r9134
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 5a48138a2c..193594b63b 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -716,7 +716,7 @@ static int
hibernate_soft_limit_reached(void)
{
uint64_t soft_limit = DBL_TO_U64(U64_TO_DBL(get_options()->AccountingMax)
- * .95);
+ * .95);
if (!soft_limit)
return 0;
return n_bytes_read_in_interval >= soft_limit