Skip to content

Commit

Permalink
add couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
spacelama committed Jan 1, 2020
1 parent ead6ea7 commit 320f489
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R710-IPMI-TEMP/fan-speed-control.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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=();
}
Expand Down

0 comments on commit 320f489

Please sign in to comment.