Skip to content

Commit

Permalink
hddtemp sometimes prints one drive as having a temperature as 255!
Browse files Browse the repository at this point in the history
(rather than just marking it invalid some *sane* way).  Filter those
out
  • Loading branch information
spacelama committed Jun 19, 2021
1 parent 9a99c11 commit 5e0266a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R710-IPMI-TEMP/fan-speed-control.pl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ END
# could just be a simple pipe, but hddtemp has a strong posibility
# to be stuck in a D state, and hold STDERR open despite a kill
# -9, so instead just send it to a tempfile, and read from that tempfile
system("timeout -k 1 20 hddtemp /dev/sd? > $tempfilename");
system("timeout -k 1 20 hddtemp /dev/sd? | grep -v 255 > $tempfilename");
@hddtemps=`grep [0-9] < $tempfilename`;
}
if (!@ambient_ipmitemps) {
Expand Down

0 comments on commit 5e0266a

Please sign in to comment.