Browse Source

Avalon fan factor is already multiplied into the info values.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
dfab6a98af
  1. 3
      driver-avalon.c

3
driver-avalon.c

@ -996,11 +996,10 @@ static void get_avalon_statline_before(char *buf, struct cgpu_info *avalon) @@ -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);
}

Loading…
Cancel
Save