Commit 02253bb7903f2dec2b50b2786c4a770a22df95f5

kanoi 2014-07-12T21:38:38

Merge pull request #627 from kanoi/master minion - correct led ghs2 choice

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-minion.c b/driver-minion.c
index ade2e0c..a361af1 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -4502,7 +4502,7 @@ static void chip_report(struct cgpu_info *minioncgpu)
 				ghs /= 1000000000.0;
 				ghs /= tdiff(&now, &(DATA_HIST(minioninfo->hchip_list[chip]->tail)->when));
 			}
-			if (minioninfo->chip_status[chip].first_nonce.tv_sec &&
+			if (minioninfo->chip_status[chip].first_nonce.tv_sec == 0L ||
 			    tdiff(&now, &minioninfo->chip_status[chip].first_nonce) < MINION_LED_TEST_TIME) {
 				ghs2_display[0] = '\0';
 				minioninfo->setled[chip] = false;