Browse Source

Merge commit '9390101' into cg_merges_20130524b

Luke Dashjr 12 years ago
parent
commit
c4d7533f33
1 changed files with 2 additions and 1 deletions
  1. 2 1
      logging.c

+ 2 - 1
logging.c

@@ -15,6 +15,7 @@
 #include "compat.h"
 #include "compat.h"
 #include "logging.h"
 #include "logging.h"
 #include "miner.h"
 #include "miner.h"
+// #include "util.h"
 
 
 bool opt_debug = false;
 bool opt_debug = false;
 bool opt_debug_console = false;  // Only used if opt_debug is also enabled
 bool opt_debug_console = false;  // Only used if opt_debug is also enabled
@@ -99,7 +100,7 @@ static void log_generic(int prio, const char *fmt, va_list ap)
 		struct tm _tm;
 		struct tm _tm;
 		struct tm *tm = &_tm;
 		struct tm *tm = &_tm;
 
 
-		gettimeofday(&tv, NULL);
+		cgtime(&tv);
 
 
 		localtime_r(&tv.tv_sec, tm);
 		localtime_r(&tv.tv_sec, tm);