From f78413549bc9a41ec1ef18705b311e167a2f7b73 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Sun, 10 May 2026 01:51:40 +0200 Subject: [PATCH] Fix Perl warning --- system-status/system-status-lib.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system-status/system-status-lib.pl b/system-status/system-status-lib.pl index 19bc5bb86..ab047336b 100755 --- a/system-status/system-status-lib.pl +++ b/system-status/system-status-lib.pl @@ -456,9 +456,9 @@ if (!$config{'collect_notemp'} && $a->[0] =~ /^Temperature$/i || $a->[0] =~ /^Current\s+Drive\s+Temperature$/i || $a->[0] =~ /^Airflow\s+Temperature\s+Cel/i) && - $a->[1] > 0) { + defined($a->[1]) && $a->[1] =~ /^\s*(\d+)/ && $1 > 0) { push(@rv, { 'device' => $d->{'device'}, - 'temp' => int($a->[1]), + 'temp' => int($1), 'errors' => $st->{'errors'}, 'failed' => !$st->{'check'} }); last;