Browse Source

fix the temp_avg

Xiangfu 13 years ago
parent
commit
c46ab2d86d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-avalon.c

+ 2 - 2
driver-avalon.c

@@ -589,14 +589,14 @@ static inline void record_temp_fan(struct avalon_info *info, struct avalon_resul
 		info->temp2 = 0 - ((~ar->temp2 & 0x7f) + 1);
 	}
 
-	*temp_avg = (info->temp0 + info->temp1 + info->temp2) / 3;
-
 	if (info->temp0 > info->temp_max)
 		info->temp_max = info->temp0;
 	if (info->temp1 > info->temp_max)
 		info->temp_max = info->temp1;
 	if (info->temp2 > info->temp_max)
 		info->temp_max = info->temp2;
+
+	*temp_avg = info->temp2;
 }
 
 static void adjust_temp(struct avalon_info *info)