add couple of comments

This commit is contained in:
Tim Connors 2020-01-02 00:02:52 +11:00
parent ead6ea755a
commit 320f489649

View file

@ -185,9 +185,13 @@ while () {
set_fans_servo($ambient_temp, \@cputemps, \@coretemps, \@hddtemps); 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) { if (time - $last_reset_hddtemps > 60) {
@hddtemps=(); @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) { if (time - $last_reset_ambient_ipmitemps > 60) {
@ambient_ipmitemps=(); @ambient_ipmitemps=();
} }