Home
last modified time | relevance | path

Searched refs:convertedValue (Results 1 – 2 of 2) sorted by relevance

/openbmc/pldm/platform-mc/test/
H A Dnumeric_sensor_test.cpp98 double convertedValue = 0; in TEST() local
99 convertedValue = sensor.conversionFormula(reading); in TEST()
100 convertedValue = sensor.unitModifier(convertedValue); in TEST()
103 EXPECT_EQ(610, convertedValue); in TEST()
/openbmc/pldm/platform-mc/
H A Dnumeric_sensor.cpp696 double convertedValue = value; in conversionFormula() local
697 convertedValue *= std::isnan(resolution) ? 1 : resolution; in conversionFormula()
698 convertedValue += std::isnan(offset) ? 0 : offset; in conversionFormula()
699 return convertedValue; in conversionFormula()