From eb9ed2a82b236fee5b4c02611dcd0eec0ba0faab Mon Sep 17 00:00:00 2001 From: Tim Connors Date: Tue, 8 Dec 2020 13:40:17 +1100 Subject: [PATCH] if no valid temps, fallback to default --- R710-IPMI-TEMP/fan-speed-control.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R710-IPMI-TEMP/fan-speed-control.pl b/R710-IPMI-TEMP/fan-speed-control.pl index 934b470..6df55ca 100755 --- a/R710-IPMI-TEMP/fan-speed-control.pl +++ b/R710-IPMI-TEMP/fan-speed-control.pl @@ -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;