Commit a10e3294bda75cd48b0f26a0429927722eebbb5f

Con Kolivas 2012-10-12T14:41:13

Be consistent with the get_statline function.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cgminer.c b/cgminer.c
index 4dfeef4..2baf426 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -1523,10 +1523,8 @@ static void get_statline(char *buf, struct cgpu_info *cgpu)
 	char displayed_hashes[16], displayed_rolling[16];
 	uint64_t dh64, dr64;
 
-	dh64 = cgpu->total_mhashes / total_secs;
-	dh64 *= 1000000ull;
-	dr64 = cgpu->rolling;
-	dr64 *= 1000000ull;
+	dh64 = (double)total_mhashes_done / total_secs * 1000000ull;
+	dr64 = (double)rolling * 1000000ull;
 	suffix_string(dh64, displayed_hashes, 4);
 	suffix_string(dr64, displayed_rolling, 4);