diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-12-12 08:32:46 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-12-17 09:22:55 +0100 |
commit | e1e5c1b3aba96afbd6fa3b5ece262720dd45a80e (patch) | |
tree | f4d89ac71f472e1f26ad821b9bab2a4bdcd68619 /src/or/or.h | |
parent | 62c2a5a8838ac8eb97ab967e10e7a1e99d761d94 (diff) | |
download | tor-e1e5c1b3aba96afbd6fa3b5ece262720dd45a80e.tar.gz tor-e1e5c1b3aba96afbd6fa3b5ece262720dd45a80e.zip |
Fix bridge statistics.
Fix statistics on client numbers by country as seen by bridges that were
broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour intervals
instead of variable 12-to-48-hour intervals.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h index 736e66a52d..85f549fc49 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3630,8 +3630,7 @@ typedef enum { void control_event_bootstrap(bootstrap_status_t status, int progress); void control_event_bootstrap_problem(const char *warn, int reason); -void control_event_clients_seen(const char *timestarted, - const char *countries); +void control_event_clients_seen(const char *controller_str); #ifdef CONTROL_PRIVATE /* Used only by control.c and test.c */ @@ -4089,6 +4088,10 @@ void geoip_dirreq_stats_init(time_t now); void geoip_dirreq_stats_write(time_t now); void geoip_entry_stats_init(time_t now); void geoip_entry_stats_write(time_t now); +void geoip_bridge_stats_init(time_t now); +time_t geoip_bridge_stats_write(time_t now); +char *geoip_get_bridge_stats_extrainfo(time_t); +char *geoip_get_bridge_stats_controller(time_t); /********************************* hibernate.c **********************/ @@ -4749,7 +4752,6 @@ int router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, crypto_pk_env_t *ident_key); int extrainfo_dump_to_string(char *s, size_t maxlen, extrainfo_t *extrainfo, crypto_pk_env_t *ident_key); -char *extrainfo_get_client_geoip_summary(time_t); int is_legal_nickname(const char *s); int is_legal_nickname_or_hexdigest(const char *s); int is_legal_hexdigest(const char *s); |