[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r9055: fix xiando's bug -- we were reporting stuff about hibernatio (tor/trunk/src/or)



Author: arma
Date: 2006-12-08 21:55:40 -0500 (Fri, 08 Dec 2006)
New Revision: 9055

Modified:
   tor/trunk/src/or/config.c
Log:
fix xiando's bug -- we were reporting stuff about hibernation
even though it wasn't enabled.


Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c	2006-12-08 05:59:21 UTC (rev 9054)
+++ tor/trunk/src/or/config.c	2006-12-09 02:55:40 UTC (rev 9055)
@@ -3966,7 +3966,8 @@
    * 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);