Home
last modified time | relevance | path

Searched refs:prevValue (Results 1 – 4 of 4) sorted by relevance

/openbmc/telemetry/src/
H A Dnumeric_threshold.cpp48 auto& prevValue = details.prevValue; in sensorUpdated() local
53 if (!prevValue) in sensorUpdated()
55 prevValue = value; in sensorUpdated()
59 bool crossedDecreasing = thresholdValue < prevValue && in sensorUpdated()
61 bool crossedIncreasing = thresholdValue > prevValue && in sensorUpdated()
64 if (!crossedDecreasing && !crossedIncreasing && thresholdValue == prevValue) in sensorUpdated()
85 prevDirection = value > prevValue ? numeric::Direction::increasing in sensorUpdated()
86 : value < prevValue ? numeric::Direction::decreasing in sensorUpdated()
88 prevValue = value; in sensorUpdated()
H A Dnumeric_threshold.hpp53 std::optional<double> prevValue = std::nullopt; member
/openbmc/phosphor-fan-presence/control/
H A Dactions.hpp216 auto prevValue = zone.swapCeilingKeyValue(avgValue); in set_ceiling_from_average_sensor_value() local
217 if (avgValue != prevValue) in set_ceiling_from_average_sensor_value()
219 if (avgValue < prevValue) in set_ceiling_from_average_sensor_value()
240 if (avgValue < it->first && it->first <= prevValue) in set_ceiling_from_average_sensor_value()
272 if (avgValue > it->first && it->first >= prevValue) in set_ceiling_from_average_sensor_value()
/openbmc/telemetry/src/metrics/
H A Dcollection_function.cpp129 const auto prevValue = result / multiplier; in calculateForStartupInterval() local
131 {ReadingItem(readings.front().first, prevValue), in calculateForStartupInterval()