Commit dfab6a98afdbffd5cb8b347cf7319a98b39535ba

Con Kolivas 2013-05-30T10:18:09

Avalon fan factor is already multiplied into the info values.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-avalon.c b/driver-avalon.c
index f7d81fa..c0f217a 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -996,11 +996,10 @@ static void get_avalon_statline_before(char *buf, struct cgpu_info *avalon)
 		lowfan = info->fan1;
 	if (info->fan2 >= 0 && info->fan2 < lowfan)
 		lowfan = info->fan2;
-	lowfan *= AVALON_FAN_FACTOR;
 
 	pwm = info->fan_pwm * 100 / AVALON_DEFAULT_FAN_MAX_PWM;
 
-	tailsprintf(buf, "%2d/%3dC %3d%%/%4dR| ", info->temp0, info->temp2,
+	tailsprintf(buf, "%2d/%3dC %3d%%/%04dR| ", info->temp0, info->temp2,
 		    pwm, lowfan);
 }