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 2640be28fa
commit 8b9d7da59f

View File

@ -144,6 +144,8 @@ void router_set_bandwidth_capacity(int bw) {
} }
/** Return the value we tucked away above, or zero by default. */ /** Return the value we tucked away above, or zero by default. */
int router_get_bandwidth_capacity(void) { int router_get_bandwidth_capacity(void) {
if (we_are_hibernating())
return 0;
return bw_capacity; return bw_capacity;
} }