Commit d58b93839e4486565dfdf4c32dff5f4a9f9c1101

kanoi 2014-05-16T21:59:41

minion - show 5m Chip ghs up to 'now'

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/driver-minion.c b/driver-minion.c
index 4a605c1..02875c3 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -3036,8 +3036,7 @@ static void chip_report(struct cgpu_info *minioncgpu)
 				else {
 					ghs = 0xffffffffull * (minioninfo->history_nonces[chip] - 1);
 					ghs /= 1000000000.0;
-					ghs /= tdiff(&(minioninfo->newest_nonce[chip]),
-							&(minioninfo->oldest_nonce[chip]));
+					ghs /= tdiff(&now, &(minioninfo->oldest_nonce[chip]));
 				}
 				snprintf(buf + len, sizeof(buf) - len,
 					 "%s%d=%.2f", any ? " " : "", chip, ghs);