diff options
author | Roger Dingledine <arma@torproject.org> | 2006-12-09 02:55:40 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-12-09 02:55:40 +0000 |
commit | 29099a98c2a56f6b436cfd02129a16617fa93193 (patch) | |
tree | 6df633c5d487a5c2c96064453c71437877dd8f87 /src/or | |
parent | 81be0ad1e52d0a96e24e1a3b96aea2c4ee0f17d7 (diff) | |
download | tor-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.c | 3 |
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); |