Skip to content

Commit

Permalink
Skip delay timer on vs
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak committed Nov 13, 2024
1 parent 95b1e63 commit 7f0a73e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions orchagent/flexcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,17 @@ FlexCounterOrch::FlexCounterOrch(DBConnector *db, vector<string> &tableNames):
{
SWSS_LOG_ENTER();
m_delayTimer = new SelectableTimer(timespec{.tv_sec = FLEX_COUNTER_DELAY_SEC, .tv_nsec = 0});
auto executor = new ExecutableTimer(m_delayTimer, this, "FLEX_COUNTER_DELAY");
Orch::addExecutor(executor);
m_delayTimer->start();
string platform = getenv("platform") ? getenv("platform") : "";
if (platform != VS_PLATFORM_SUBSTRING)
{
auto executor = new ExecutableTimer(m_delayTimer, this, "FLEX_COUNTER_DELAY");
Orch::addExecutor(executor);
m_delayTimer->start();
}
else
{
m_delayTimerExpired = true;
}
}

FlexCounterOrch::~FlexCounterOrch(void)
Expand Down

0 comments on commit 7f0a73e

Please sign in to comment.