Commit cba95216057f811eb6baf5cd8b5edc388a814590

kanoi 2014-07-12T18:31:58

minion - correct ghs2 display

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-minion.c b/driver-minion.c
index d3cd55e..ade2e0c 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -4511,7 +4511,7 @@ static void chip_report(struct cgpu_info *minioncgpu)
 				ghs2 /= 1000000000.0;
 				ghs2 /= tdiff(&now, &minioninfo->chip_status[chip].first_nonce);
 				minioninfo->setled[chip] = (ghs2 >= opt_minion_ledlimit);
-				snprintf(ghs2_display, sizeof(ghs2_display), "[%.2f]", ghs);
+				snprintf(ghs2_display, sizeof(ghs2_display), "[%.2f]", ghs2);
 			}
 
 			res_err_count = minioninfo->res_err_count[chip];