[or-cvs] make more hibernate log messages use local time. we should ...

arma at seul.org arma at seul.org
Sun Apr 23 23:05:37 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	hibernate.c 
Log Message:
make more hibernate log messages use local time. we should audit
to see what other log messages keep switching back and forth
between GMT and local.


Index: hibernate.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/hibernate.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -p -d -r1.70 -r1.71
--- hibernate.c	13 Mar 2006 01:06:55 -0000	1.70
+++ hibernate.c	23 Apr 2006 23:05:34 -0000	1.71
@@ -862,9 +862,10 @@ consider_hibernation(time_t now)
                  "Bandwidth soft limit reached; commencing hibernation.");
       hibernate_begin(HIBERNATE_STATE_LOWBANDWIDTH, now);
     } else if (accounting_enabled && now < interval_wakeup_time) {
-      format_iso_time(buf,interval_wakeup_time);
+      format_local_iso_time(buf,interval_wakeup_time);
       log_notice(LD_ACCT,
-                 "Commencing hibernation. We will wake up at %s GMT", buf);
+                 "Commencing hibernation. We will wake up at %s local time.",
+                 buf);
       hibernate_go_dormant(now);
     }
   }



More information about the tor-commits mailing list