2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #468 from zet809/issue_462

fix issue 462: The result of "rvitals wattage" is not right on firest…
This commit is contained in:
Yuan Bai 2015-11-25 17:37:25 +08:00
commit 6d9ff85e1c

View File

@ -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;
}
}
}