Browse Source

Merge remote-tracking branch 'upstream/master'

nfactor-troky
James Z.M. Gao 12 years ago
parent
commit
5ba07b9a03
  1. 30
      driver-avalon.c

30
driver-avalon.c

@ -949,20 +949,22 @@ static int64_t avalon_scanhash(struct thr_info *thr)
avalon_rotate_array(avalon); avalon_rotate_array(avalon);
record_temp_fan(info, &ar, &(avalon->temp)); if (hash_count) {
applog(LOG_INFO, record_temp_fan(info, &ar, &(avalon->temp));
"Avalon: Fan1: %d/m, Fan2: %d/m, Fan3: %d/m\t" applog(LOG_INFO,
"Temp1: %dC, Temp2: %dC, Temp3: %dC, TempMAX: %dC", "Avalon: Fan1: %d/m, Fan2: %d/m, Fan3: %d/m\t"
info->fan0, info->fan1, info->fan2, "Temp1: %dC, Temp2: %dC, Temp3: %dC, TempMAX: %dC",
info->temp0, info->temp1, info->temp2, info->temp_max); info->fan0, info->fan1, info->fan2,
info->temp_history_index++; info->temp0, info->temp1, info->temp2, info->temp_max);
info->temp_sum += avalon->temp; info->temp_history_index++;
applog(LOG_DEBUG, "Avalon: temp_index: %d, temp_count: %d, temp_old: %d", info->temp_sum += avalon->temp;
info->temp_history_index, info->temp_history_count, info->temp_old); applog(LOG_DEBUG, "Avalon: temp_index: %d, temp_count: %d, temp_old: %d",
if (info->temp_history_index == info->temp_history_count) { info->temp_history_index, info->temp_history_count, info->temp_old);
adjust_fan(info); if (info->temp_history_index == info->temp_history_count) {
info->temp_history_index = 0; adjust_fan(info);
info->temp_sum = 0; info->temp_history_index = 0;
info->temp_sum = 0;
}
} }
/* This hashmeter is just a utility counter based on returned shares */ /* This hashmeter is just a utility counter based on returned shares */

Loading…
Cancel
Save