mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to exclude sensors with unknown temperatures
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user