Allow controllers a more up-to-date view of bridge usage.
commit118d8ffdcb74137a36d22928ce6f46897809391e
authorNick Mathewson <nickm@torproject.org>
Wed, 16 Mar 2011 02:39:22 +0000 (15 22:39 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Apr 2011 15:53:37 +0000 (7 11:53 -0400)
tree8dbcb2413b1d35ab1c30011020bb35eeef7dc25a
parent286d44402e829488abe802efd1607eabbc98f1d1
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.
changes/feature2711 [new file with mode: 0644]
src/or/control.c
src/or/geoip.c
src/or/geoip.h