From db906c29d7c37c492178c37bf528a9421adc8aef Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 2 Nov 2023 20:00:37 -0700 Subject: [PATCH] undefined value fix --- pinxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinxi b/pinxi index 915b3f3..6afa282 100755 --- a/pinxi +++ b/pinxi @@ -26492,7 +26492,7 @@ sub load_sys_data { $adapter .= '-' . $hwmons{$hwmon}->{'device'}; ($unit,$value,@values) = (); foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){ - next if !$item->{'id'}; + next if !defined $item->{'id'}; my $name = ($item->{'label'}) ? $item->{'label'}: $item->{'id'}; if ($item->{'id'} =~ /^temp/){ $unit = 'C';