From f126fc31339e24133285650b66b1355a0174db12 Mon Sep 17 00:00:00 2001 From: iliajie Date: Sun, 2 Oct 2022 19:50:11 +0300 Subject: [PATCH] Fix to exclude sensors with unknown temperatures --- proc/linux-lib.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proc/linux-lib.pl b/proc/linux-lib.pl index 28281d877..79c534fc1 100755 --- a/proc/linux-lib.pl +++ b/proc/linux-lib.pl @@ -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); }