mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
while we hibernate, our declared bandwidth capacity is 0
svn:r2710
This commit is contained in:
parent
2640be28fa
commit
8b9d7da59f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user