Commit 93901011cf06d294044e32713a0a2cff800f0e0b

Con Kolivas 2013-04-21T19:15:34

Use cgtime in logging.c

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/logging.c b/logging.c
index addec90..c4e165a 100644
--- a/logging.c
+++ b/logging.c
@@ -13,6 +13,7 @@
 
 #include "logging.h"
 #include "miner.h"
+// #include "util.h"
 
 bool opt_debug = false;
 bool opt_log_output = false;
@@ -83,7 +84,7 @@ static void log_generic(int prio, const char *fmt, va_list ap)
 		struct timeval tv = {0, 0};
 		struct tm *tm;
 
-		gettimeofday(&tv, NULL);
+		cgtime(&tv);
 
 		const time_t tmp_time = tv.tv_sec;
 		tm = localtime(&tmp_time);