Commit 06b9e0c4d9084eb76125c5de7d2139e2f61320ac

Con Kolivas 2013-05-30T10:16:04

Get rid of zeros which corrupt display.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 24dcbdc..f7d81fa 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -1000,7 +1000,7 @@ static void get_avalon_statline_before(char *buf, struct cgpu_info *avalon)
 
 	pwm = info->fan_pwm * 100 / AVALON_DEFAULT_FAN_MAX_PWM;
 
-	tailsprintf(buf, "%2d/%3dC %3d%%/%04dR| ", info->temp0, info->temp2,
+	tailsprintf(buf, "%2d/%3dC %3d%%/%4dR| ", info->temp0, info->temp2,
 		    pwm, lowfan);
 }