[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] while we hibernate, our declared bandwidth capacity is 0
- To: or-cvs@freehaven.net
- Subject: [or-cvs] while we hibernate, our declared bandwidth capacity is 0
- From: arma@seul.org (Roger Dingledine)
- Date: Sun, 7 Nov 2004 18:19:14 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 07 Nov 2004 18:19:32 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
router.c
Log Message:
while we hibernate, our declared bandwidth capacity is 0
Index: router.c
===================================================================
RCS file: /home/or/cvsroot/src/or/router.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- router.c 7 Nov 2004 01:33:06 -0000 1.111
+++ router.c 7 Nov 2004 23:19:12 -0000 1.112
@@ -144,6 +144,8 @@
}
/** Return the value we tucked away above, or zero by default. */
int router_get_bandwidth_capacity(void) {
+ if (we_are_hibernating())
+ return 0;
return bw_capacity;
}