Commit bac797e33d35d266f520beb4bf516a4801105fd3

kanoi 2014-07-12T21:33:59

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;