Fix to exclude sensors with unknown temperatures

This commit is contained in:
iliajie
2022-10-02 19:50:11 +03:00
parent 2eded6df95
commit f126fc3133

View File

@@ -641,6 +641,12 @@ if (&has_command("sensors")) {
}
@cpu = @cputhermisters
if (!@cpu && @cputhermisters);
# Fix to remove cannot detect
# package temperatures (178)
if (@cpu) {
@cpu = grep {$_->{'temp'} != 178} @cpu;
}
return (\@cpu, \@fans);
}