[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] while we hibernate, our declared bandwidth capacity is 0



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;
 }