From b42253a4d14c9f47cfeecb8f420a06baa4950f07 Mon Sep 17 00:00:00 2001 From: Qi Luo Date: Tue, 5 Jan 2021 16:00:28 -0800 Subject: [PATCH] Fix for armhf build (#1580) --- orchagent/switchorch.cpp | 4 ++-- orchagent/switchorch.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/orchagent/switchorch.cpp b/orchagent/switchorch.cpp index c6c6bd812c02..8e8c0cf42967 100644 --- a/orchagent/switchorch.cpp +++ b/orchagent/switchorch.cpp @@ -91,7 +91,7 @@ void SwitchOrch::doCfgSensorsTableTask(Consumer &consumer) } else if (table_attr == ASIC_SENSORS_POLLER_INTERVAL) { - uint32_t interval=to_uint(fvValue(fvt)); + auto interval=to_int(fvValue(fvt)); if (fvField(fvt) == "interval") { @@ -104,7 +104,7 @@ void SwitchOrch::doCfgSensorsTableTask(Consumer &consumer) } else { - SWSS_LOG_INFO("ASIC sensors : poller interval unchanged : %d seconds",m_sensorsPollerInterval); + SWSS_LOG_INFO("ASIC sensors : poller interval unchanged : %s seconds", to_string(m_sensorsPollerInterval).c_str()); } } else diff --git a/orchagent/switchorch.h b/orchagent/switchorch.h index c43bc41ae28d..5248ba63e465 100644 --- a/orchagent/switchorch.h +++ b/orchagent/switchorch.h @@ -42,7 +42,7 @@ class SwitchOrch : public Orch std::shared_ptr m_asicSensorsTable= nullptr; swss::SelectableTimer* m_sensorsPollerTimer = nullptr; bool m_sensorsPollerEnabled = false; - uint32_t m_sensorsPollerInterval = DEFAULT_ASIC_SENSORS_POLLER_INTERVAL; + time_t m_sensorsPollerInterval = DEFAULT_ASIC_SENSORS_POLLER_INTERVAL; bool m_sensorsPollerIntervalChanged = false; uint8_t m_numTempSensors = 0; bool m_numTempSensorsInitialized = false;