summaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-01 02:45:28 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-01 02:45:28 +0000
commit1e847aebb1da66e736c497be75de33e9ce01db5c (patch)
treee9205edb301f3bb9625cf0b45fa8ab7dbd5b2f5c /src/or/hibernate.c
parent2e97593d259d4b86f1bc2acca4be7a96895f8633 (diff)
downloadtor-1e847aebb1da66e736c497be75de33e9ce01db5c.tar.gz
tor-1e847aebb1da66e736c497be75de33e9ce01db5c.zip
Go into soft hibernation after 95% of the bandwidth is used,
not 99%. This is especially important for daily hibernators who have a small accounting max. Hopefully it will result in fewer cut connections when the hard hibernation starts. svn:r3488
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 9a2031aa86..979e2c31a4 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -641,7 +641,7 @@ hibernate_hard_limit_reached(void)
* to send/receive this interval. */
static int hibernate_soft_limit_reached(void)
{
- uint64_t soft_limit = (uint64_t) ((get_options()->AccountingMax) * .99);
+ uint64_t soft_limit = (uint64_t) ((get_options()->AccountingMax) * .95);
if (!soft_limit)
return 0;
return n_bytes_read_in_interval >= soft_limit