diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-06-21 18:52:46 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-08-05 13:05:25 +0200 |
commit | 166c2f4d92e0d1f55a6141acb076b10ad356f285 (patch) | |
tree | c295b983388f8beea15c7271423897edbfb4e8c5 /changes | |
parent | cafd868a7898a0aac7eaf58f76a8e1180766d3a8 (diff) | |
download | tor-166c2f4d92e0d1f55a6141acb076b10ad356f285.tar tor-166c2f4d92e0d1f55a6141acb076b10ad356f285.tar.gz |
Allow enabling or disabling *Statistics while Tor is running.
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.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/statsswitch | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/changes/statsswitch b/changes/statsswitch new file mode 100644 index 000000000..9260492aa --- /dev/null +++ b/changes/statsswitch @@ -0,0 +1,3 @@ + o Major features: + - Allow enabling or disabling *Statistics while Tor is running. + |