Fix a couple of smaller issues with gathering statistics.
commit457bebe01a0cffc7b2603e87611f0e5820f1cca4
authorKarsten Loesing <karsten.loesing@gmx.net>
Thu, 24 Sep 2009 19:58:56 +0000 (24 21:58 +0200)
committerKarsten Loesing <karsten.loesing@gmx.net>
Thu, 24 Sep 2009 19:58:56 +0000 (24 21:58 +0200)
tree28bf44a9765c75686120c774a4531b0bcdf6fe6f
parent52fa4f6428388be34f78951ed0a140b01a44a86c
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.
ChangeLog
src/or/geoip.c
src/or/main.c
src/or/or.h
src/or/rephist.c