diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-15 22:39:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-04-07 11:53:37 -0400 |
commit | 118d8ffdcb74137a36d22928ce6f46897809391e (patch) | |
tree | 8dbcb2413b1d35ab1c30011020bb35eeef7dc25a /src/or/geoip.h | |
parent | 286d44402e829488abe802efd1607eabbc98f1d1 (diff) | |
download | tor-118d8ffdcb74137a36d22928ce6f46897809391e.tar.gz tor-118d8ffdcb74137a36d22928ce6f46897809391e.zip |
Allow controllers a more up-to-date view of bridge usage.
Instead of answering GETINFO requests about our geoip usage only after
running for 24 hours, this patch makes us answer GETINFO requests
immediately. We still round and quantize as before.
Implements bug2711.
Also, refactor the heck out of the bridge usage formatting code. No
longer should we need to do a generate-parse-and-regenerate cycle to
get the controller string, and that lets us simplify the code a lot.
Diffstat (limited to 'src/or/geoip.h')
-rw-r--r-- | src/or/geoip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.h b/src/or/geoip.h index bafbeea0f2..24f7c5b931 100644 --- a/src/or/geoip.h +++ b/src/or/geoip.h @@ -51,7 +51,7 @@ void geoip_bridge_stats_init(time_t now); time_t geoip_bridge_stats_write(time_t now); void geoip_bridge_stats_term(void); const char *geoip_get_bridge_stats_extrainfo(time_t); -const char *geoip_get_bridge_stats_controller(time_t); +char *geoip_get_bridge_stats_controller(time_t); #endif |