Skip to content

Commit

Permalink
Change flex counters logic to multiply by 1000 in lua script in order…
Browse files Browse the repository at this point in the history
… to get real results
  • Loading branch information
noaOrMlnx committed Aug 9, 2021
1 parent f56a39e commit e9db3dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncd/FlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ void FlexCounter::addCounterPlugin(
for (auto& sha: shaStrings)
{
addRifCounterPlugin(sha);
}
}
}
else if (field == BUFFER_POOL_PLUGIN_FIELD)
{
Expand Down Expand Up @@ -1597,7 +1597,7 @@ void FlexCounter::runPlugins(
{
std::to_string(counters_db.getDbId()),
COUNTERS_TABLE,
std::to_string(m_pollInterval * 1000)
std::to_string(m_pollInterval)
};

std::vector<std::string> portList;
Expand Down

0 comments on commit e9db3dd

Please sign in to comment.