diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-09-24 21:58:56 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-09-24 21:58:56 +0200 |
commit | 457bebe01a0cffc7b2603e87611f0e5820f1cca4 (patch) | |
tree | 28bf44a9765c75686120c774a4531b0bcdf6fe6f /src/or/or.h | |
parent | 52fa4f6428388be34f78951ed0a140b01a44a86c (diff) | |
download | tor-457bebe01a0cffc7b2603e87611f0e5820f1cca4.tar tor-457bebe01a0cffc7b2603e87611f0e5820f1cca4.tar.gz |
Fix a couple of smaller issues with gathering statistics.
- Avoid memmoving 0 bytes which might lead to compiler warnings.
- Don't require relays to be entry node AND bridge at the same to time to
record clients.
- Fix a memory leak when writing dirreq-stats.
- Don't say in the stats files that measurement intervals are twice as long
as they really are.
- Reduce minimum observation time for requests to 12 hours, or we might
never record usage.
- Clear exit stats correctly after writing them, or we accumulate old stats
over time.
- Reset interval start for buffer stats, too.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index a7db06f71..0162e31f0 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3867,7 +3867,7 @@ int dnsserv_launch_request(const char *name, int is_reverse); #define DIR_ENTRY_RECORD_USAGE_RETAIN_IPS (24*60*60) /** How long do we have to have observed per-country request history before * we are willing to talk about it? */ -#define DIR_RECORD_USAGE_MIN_OBSERVATION_TIME (24*60*60) +#define DIR_RECORD_USAGE_MIN_OBSERVATION_TIME (12*60*60) #ifdef GEOIP_PRIVATE int geoip_parse_entry(const char *line); |