Skip to content

Commit

Permalink
Fix for armhf build (sonic-net#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Jan 6, 2021
1 parent d8c1465 commit b42253a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions orchagent/switchorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void SwitchOrch::doCfgSensorsTableTask(Consumer &consumer)
}
else if (table_attr == ASIC_SENSORS_POLLER_INTERVAL)
{
uint32_t interval=to_uint<uint32_t>(fvValue(fvt));
auto interval=to_int<time_t>(fvValue(fvt));

if (fvField(fvt) == "interval")
{
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion orchagent/switchorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SwitchOrch : public Orch
std::shared_ptr<swss::Table> 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;
Expand Down

0 comments on commit b42253a

Please sign in to comment.