Commit 3cb24c2ca341942e12d75d5e3b0d91a920a2b5c9

Con Kolivas 2013-04-21T19:11:20

Use cgtime in driver-ztex.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/driver-ztex.c b/driver-ztex.c
index 210060c..3898589 100644
--- a/driver-ztex.c
+++ b/driver-ztex.c
@@ -27,6 +27,7 @@
 #include <unistd.h>
 #include <sha2.h>
 #include "libztex.h"
+#include "util.h"
 
 #define GOLDEN_BACKLOG 5
 
@@ -375,7 +376,7 @@ static bool ztex_prepare(struct thr_info *thr)
 	struct cgpu_info *cgpu = thr->cgpu;
 	struct libztex_device *ztex = cgpu->device_ztex;
 
-	gettimeofday(&now, NULL);
+	cgtime(&now);
 	get_datestamp(cgpu->init, &now);
 
 	ztex_selectFpga(ztex);