mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
11cc215449
commit
39cf6c3eb9
1
pinxi
1
pinxi
|
@ -26492,6 +26492,7 @@ sub load_sys_data {
|
||||||
$adapter .= '-' . $hwmons{$hwmon}->{'device'};
|
$adapter .= '-' . $hwmons{$hwmon}->{'device'};
|
||||||
($unit,$value,@values) = ();
|
($unit,$value,@values) = ();
|
||||||
foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){
|
foreach my $item (@{$hwmons{$hwmon}->{'sensors'}}){
|
||||||
|
next if !$item->{'id'};
|
||||||
my $name = ($item->{'label'}) ? $item->{'label'}: $item->{'id'};
|
my $name = ($item->{'label'}) ? $item->{'label'}: $item->{'id'};
|
||||||
if ($item->{'id'} =~ /^temp/){
|
if ($item->{'id'} =~ /^temp/){
|
||||||
$unit = 'C';
|
$unit = 'C';
|
||||||
|
|
Loading…
Reference in a new issue