summaryrefslogtreecommitdiff
path: root/src/or/rephist.h
AgeCommit message (Collapse)Author
2010-08-15Give rep_hist_exit_stats_history() a better name.Karsten Loesing
2010-08-11Refactor exit port statistics code and add unit tests.Karsten Loesing
2010-08-05Allow enabling or disabling *Statistics while Tor is running.Karsten Loesing
With this patch we stop scheduling when we should write statistics using a single timestamp in run_scheduled_events(). Instead, we remember when a statistics interval starts separately for each statistic type in geoip.c and rephist.c. Every time run_scheduled_events() tries to write stats to disk, it learns when it should schedule the next such attempt. This patch also enables all statistics to be stopped and restarted at a later time. This patch comes with a few refactorings, some of which were not easily doable without the patch.
2010-07-28Fix typos, make all \brief's conformant, end sentences with a period.Linus Nordberg
2010-07-27Create rephist.hSebastian Hahn