mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 08:11:39 +00:00
bug fix, undefined value possible
This commit is contained in:
parent
bf13ee49a8
commit
8c3b64c74d
1
inxi
1
inxi
|
@ -26492,6 +26492,7 @@ sub load_sys_data {
|
|||
$adapter .= '-' . $hwmons{$hwmon}->{'device'};
|
||||
($unit,$value,@values) = ();
|
||||
foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){
|
||||
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