mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
undefined value fix
This commit is contained in:
parent
39cf6c3eb9
commit
db906c29d7
2
pinxi
2
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';
|
||||
|
|
Loading…
Reference in a new issue