]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Go into soft hibernation after 95% of the bandwidth is used,
authorRoger Dingledine <arma@torproject.org>
Tue, 1 Feb 2005 02:45:28 +0000 (02:45 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 1 Feb 2005 02:45:28 +0000 (02:45 +0000)
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

src/or/hibernate.c

index 9a2031aa86440bd99a02eb8c718e053ec4205d61..979e2c31a463afabdd261e64a50ea31dd63f32c0 100644 (file)
@@ -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