From 320f489649c05840a43ae022c19ac8336130fa14 Mon Sep 17 00:00:00 2001 From: Tim Connors Date: Thu, 2 Jan 2020 00:02:52 +1100 Subject: [PATCH] add couple of comments --- R710-IPMI-TEMP/fan-speed-control.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R710-IPMI-TEMP/fan-speed-control.pl b/R710-IPMI-TEMP/fan-speed-control.pl index d685ca8..0f1f887 100755 --- a/R710-IPMI-TEMP/fan-speed-control.pl +++ b/R710-IPMI-TEMP/fan-speed-control.pl @@ -185,9 +185,13 @@ END set_fans_servo($ambient_temp, \@cputemps, \@coretemps, \@hddtemps); } + # every 60 seconds, invalidate the cache of the slowly changing hdd + # temperatures to allow them to be refreshed if (time - $last_reset_hddtemps > 60) { @hddtemps=(); } + # every 60 seconds, invalidate the cache of the slowly changing + # ambient temperatures to allow them to be refreshed if (time - $last_reset_ambient_ipmitemps > 60) { @ambient_ipmitemps=(); }