diff options
| author | James Feist <james.feist@linux.intel.com> | 2019-02-25 13:28:18 -0800 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-02-26 18:46:56 +0000 |
| commit | 3484bedaf611a106eeaf418b6cede2c2e42095c8 (patch) | |
| tree | b852399ccab0119f7ccccc3e477635d48da01a48 /dbus | |
| parent | 75eb769d351434547899186f73ff70ae00d7934a (diff) | |
| download | phosphor-pid-control-3484bedaf611a106eeaf418b6cede2c2e42095c8.tar.gz phosphor-pid-control-3484bedaf611a106eeaf418b6cede2c2e42095c8.zip | |
s/minThermalRPM/minThermalOutput
The minThermalRPM is only an RPM by the fact that
that is the units of the PID. As the PID units can
be anything, change this to minThermalOutput to allow
for different units (i.e. percent).
Change-Id: Ic53fef1159ade5a413e5d519d407947f3023d8e3
Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbusconfiguration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbusconfiguration.cpp b/dbus/dbusconfiguration.cpp index 06bcdcc..3c5be34 100644 --- a/dbus/dbusconfiguration.cpp +++ b/dbus/dbusconfiguration.cpp @@ -92,7 +92,7 @@ void debugPrint(void) for (const auto& zone : zoneDetailsConfig) { std::cout << "\t{" << zone.first << ",\n"; - std::cout << "\t\t{" << zone.second.minThermalRpm << ", "; + std::cout << "\t\t{" << zone.second.minThermalOutput << ", "; std::cout << zone.second.failsafePercent << "}\n\t},\n"; } std::cout << "}\n\n"; @@ -299,8 +299,8 @@ void init(sdbusplus::bus::bus& bus) size_t index = getZoneIndex(name, foundZones); auto& details = zoneDetailsConfig[index]; - details.minThermalRpm = - std::visit(VariantToDoubleVisitor(), zone.at("MinThermalRpm")); + details.minThermalOutput = std::visit(VariantToDoubleVisitor(), + zone.at("MinThermalOutput")); details.failsafePercent = std::visit(VariantToDoubleVisitor(), zone.at("FailSafePercent")); } |

