mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
fix issue 462: The result of "rvitals wattage" is not right on firestone and habanero
This commit is contained in:
parent
9efc3cac00
commit
f99e7697dc
@ -5780,7 +5780,7 @@ sub vitals {
|
||||
$sensor_filters{0x02}=1;
|
||||
}
|
||||
if(grep /watt/,@textfilters) {
|
||||
$sensor_filters{0x03}=1;
|
||||
$sensor_filters{watt}=1;
|
||||
}
|
||||
if(grep /fan/,@textfilters) {
|
||||
$sensor_filters{0x04}=1;
|
||||
@ -5816,6 +5816,9 @@ sub vitals {
|
||||
my $lformat = $format;
|
||||
push @{$sessdata->{sensorstoread}},$sdr;
|
||||
$usedkeys{$key}=1;
|
||||
} elsif ($filter eq "watt" and $sdr->sensor_units_2 and $sdr->sensor_units_2==0x06) {
|
||||
push @{$sessdata->{sensorstoread}},$sdr;
|
||||
$usedkeys{$key}=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user