[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] backport: go into soft hibernation at 95% bandwidth used
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] backport: go into soft hibernation at 95% bandwidth used
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Thu, 3 Feb 2005 18:46:10 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Thu, 03 Feb 2005 18:46:33 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/0091/tor/src/or
Modified Files:
Tag: tor-0_0_9-patches
hibernate.c
Log Message:
backport: go into soft hibernation at 95% bandwidth used
Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.41
retrieving revision 1.41.2.1
diff -u -d -r1.41 -r1.41.2.1
--- hibernate.c 16 Dec 2004 21:10:51 -0000 1.41
+++ hibernate.c 3 Feb 2005 23:46:05 -0000 1.41.2.1
@@ -639,7 +639,7 @@
* 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