if no valid temps, fallback to default
This commit is contained in:
parent
c05926d433
commit
eb9ed2a82b
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ sub set_fans_servo {
|
|||
average(@cputemps), average(@coretemps), average(@hddtemps)),
|
||||
average(@hddtemps));
|
||||
|
||||
if (!defined $weighted_temp) {
|
||||
if (!defined $weighted_temp or $weighted_temp == 0) {
|
||||
print "Error reading all temperatures! Fallback to idrac control\n";
|
||||
set_fans_default();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue