diff options
Diffstat (limited to 'thermal/utils/thermal_stats_helper.cpp')
-rw-r--r-- | thermal/utils/thermal_stats_helper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/thermal/utils/thermal_stats_helper.cpp b/thermal/utils/thermal_stats_helper.cpp index daaaf1c6..bbd99542 100644 --- a/thermal/utils/thermal_stats_helper.cpp +++ b/thermal/utils/thermal_stats_helper.cpp @@ -313,6 +313,9 @@ int ThermalStatsHelper::reportAllSensorTempStats(const std::shared_ptr<IStats> & count_failed_reporting++; } } + // Reset temp stats after reporting + temp_stats.max_temp = std::numeric_limits<float>::min(); + temp_stats.min_temp = std::numeric_limits<float>::max(); } return count_failed_reporting; } |