aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-10-28 07:47:47 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2009-12-17 09:15:06 +0100
commitd38268a8c7328a9f95beb76442f159bf27211271 (patch)
treeaed61cda6451c2504d05709b7cbe60bba41d5a84 /src/or/main.c
parent62c2a5a8838ac8eb97ab967e10e7a1e99d761d94 (diff)
downloadtor-d38268a8c7328a9f95beb76442f159bf27211271.tar.gz
tor-d38268a8c7328a9f95beb76442f159bf27211271.zip
Remove v0 hidden service statistics code.
The HSAuthorityRecordStats option was used to track statistics of overall hidden service usage on the version 0 hidden service authorities. With the version 2 hidden service directories being deployed and version 0 descriptors being phased out, these statistics are not as useful anymore. Goodbye, you fine piece of software; my first major code contribution to Tor.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 4dc182efe4..443e35eab7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -824,7 +824,6 @@ run_scheduled_events(time_t now)
static time_t time_to_try_getting_descriptors = 0;
static time_t time_to_reset_descriptor_failures = 0;
static time_t time_to_add_entropy = 0;
- static time_t time_to_write_hs_statistics = 0;
static time_t time_to_write_bridge_status_file = 0;
static time_t time_to_downrate_stability = 0;
static time_t time_to_save_stability = 0;
@@ -1165,12 +1164,6 @@ run_scheduled_events(time_t now)
}
}
- /** 10. write hidden service usage statistic to disk */
- if (options->HSAuthorityRecordStats && time_to_write_hs_statistics < now) {
- hs_usage_write_statistics_to_file(now);
-#define WRITE_HSUSAGE_INTERVAL (30*60)
- time_to_write_hs_statistics = now+WRITE_HSUSAGE_INTERVAL;
- }
/** 10b. write bridge networkstatus file to disk */
if (options->BridgeAuthoritativeDir &&
time_to_write_bridge_status_file < now) {
@@ -1979,7 +1972,6 @@ tor_free_all(int postfork)
rend_cache_free_all();
rend_service_authorization_free_all();
rep_hist_free_all();
- hs_usage_free_all();
dns_free_all();
clear_pending_onions();
circuit_free_all();