Commit 4a714cb1f306d3b74d72f2b05fc940872fa2f7cb

Kano 2012-02-04T22:42:28

Bug intensity always shows GPU 0

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/api.c b/api.c
index 9db5723..a65c906 100644
--- a/api.c
+++ b/api.c
@@ -526,7 +526,7 @@ static void gpustatus(int gpu, bool isjson)
 		if (cgpu->dynamic)
 			strcpy(intensity, DYNAMIC);
 		else
-			sprintf(intensity, "%d", gpus->intensity);
+			sprintf(intensity, "%d", cgpu->intensity);
 
 		if (isjson)
 			sprintf(buf, "{\"GPU\":%d,\"Enabled\":\"%s\",\"Status\":\"%s\",\"Temperature\":%.2f,\"Fan Speed\":%d,\"Fan Percent\":%d,\"GPU Clock\":%d,\"Memory Clock\":%d,\"GPU Voltage\":%.3f,\"GPU Activity\":%d,\"Powertune\":%d,\"MHS av\":%.2f,\"MHS %ds\":%.2f,\"Accepted\":%d,\"Rejected\":%d,\"Hardware Errors\":%d,\"Utility\":%.2f,\"Intensity\":\"%s\",\"Last Share Pool\":%d,\"Last Share Time\":%lu}",