while we hibernate, our declared bandwidth capacity is 0

svn:r2710
This commit is contained in:
Roger Dingledine
2004-11-07 23:19:12 +00:00
parent 25f69f84e5
commit 51febe3387
+2
View File
@@ -144,6 +144,8 @@ void router_set_bandwidth_capacity(int bw) {
}
/** 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;
}