diff options
Diffstat (limited to 'thermal/utils/thermal_info.h')
-rw-r--r-- | thermal/utils/thermal_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thermal/utils/thermal_info.h b/thermal/utils/thermal_info.h index da9585a8..5b2e8b80 100644 --- a/thermal/utils/thermal_info.h +++ b/thermal/utils/thermal_info.h @@ -42,7 +42,8 @@ constexpr std::chrono::milliseconds kMinPollIntervalMs = std::chrono::millisecon constexpr std::chrono::milliseconds kUeventPollTimeoutMs = std::chrono::milliseconds(300000); // Max number of time_in_state buckets is 20 in atoms // VendorSensorCoolingDeviceStats, VendorTempResidencyStats -constexpr size_t kMaxStatsThresholdCount = 19; +constexpr int kMaxStatsResidencyCount = 20; +constexpr int kMaxStatsThresholdCount = kMaxStatsResidencyCount - 1; enum FormulaOption : uint32_t { COUNT_THRESHOLD = 0, |