diff options
Diffstat (limited to 'redfish-core/lib/sensors.hpp')
-rw-r--r-- | redfish-core/lib/sensors.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp index 4d4b4cce27..a53c1124fa 100644 --- a/redfish-core/lib/sensors.hpp +++ b/redfish-core/lib/sensors.hpp @@ -965,7 +965,7 @@ inline void objectInterfacesToJson( std::string sensorNameLower = boost::algorithm::to_lower_copy(sensorName); - if (!sensorName.compare("total_power")) + if (sensorName.compare("total_power") == 0) { sensorJson["@odata.type"] = "#Power.v1_0_0.PowerControl"; // Put multiple "sensors" into a single PowerControl, so have @@ -2551,7 +2551,7 @@ inline void getSensorData( } else if (sensorType == "power") { - if (!sensorName.compare("total_power")) + if (sensorName.compare("total_power") == 0) { fieldName = "PowerControl"; } |