aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-12-09 02:55:40 +0000
committerRoger Dingledine <arma@torproject.org>2006-12-09 02:55:40 +0000
commit29099a98c2a56f6b436cfd02129a16617fa93193 (patch)
tree6df633c5d487a5c2c96064453c71437877dd8f87 /src/or
parent81be0ad1e52d0a96e24e1a3b96aea2c4ee0f17d7 (diff)
downloadtor-29099a98c2a56f6b436cfd02129a16617fa93193.tar.gz
tor-29099a98c2a56f6b436cfd02129a16617fa93193.zip
fix xiando's bug -- we were reporting stuff about hibernation
even though it wasn't enabled. svn:r9055
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d7f7209994..8823dae43f 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3966,7 +3966,8 @@ or_state_save(time_t now)
* to avoid redundant writes. */
entry_guards_update_state(global_state);
rep_hist_update_state(global_state);
- accounting_run_housekeeping(now);
+ if (accounting_is_enabled(get_options()))
+ accounting_run_housekeeping(now);
global_state->LastWritten = time(NULL);
tor_free(global_state->TorVersion);