Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pfcwd] Fix the polling interval time granularity #1912

Merged
merged 1 commit into from
Sep 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orchagent/pfc_detect_barefoot.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- KEYS - queue IDs
-- ARGV[1] - counters db index
-- ARGV[2] - counters table name
-- ARGV[3] - poll time interval
-- ARGV[3] - poll time interval (milliseconds)
-- return queue Ids that satisfy criteria

local counters_db = ARGV[1]
local counters_table_name = ARGV[2]
local poll_time = tonumber(ARGV[3])
local poll_time = tonumber(ARGV[3]) * 1000

local rets = {}

Expand Down
4 changes: 2 additions & 2 deletions orchagent/pfc_detect_broadcom.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- KEYS - queue IDs
-- ARGV[1] - counters db index
-- ARGV[2] - counters table name
-- ARGV[3] - poll time interval
-- ARGV[3] - poll time interval (milliseconds)
-- return queue Ids that satisfy criteria

local counters_db = ARGV[1]
local counters_table_name = ARGV[2]
local poll_time = tonumber(ARGV[3])
local poll_time = tonumber(ARGV[3]) * 1000

local rets = {}

Expand Down
4 changes: 2 additions & 2 deletions orchagent/pfc_detect_innovium.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- KEYS - queue IDs
-- ARGV[1] - counters db index
-- ARGV[2] - counters table name
-- ARGV[3] - poll time interval
-- ARGV[3] - poll time interval (milliseconds)
-- return queue Ids that satisfy criteria

local counters_db = ARGV[1]
local counters_table_name = ARGV[2]
local poll_time = tonumber(ARGV[3])
local poll_time = tonumber(ARGV[3]) * 1000

local rets = {}

Expand Down
4 changes: 2 additions & 2 deletions orchagent/pfc_detect_nephos.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-- KEYS - queue IDs
-- ARGV[1] - counters db index
-- ARGV[2] - counters table name
-- ARGV[3] - poll time interval
-- ARGV[3] - poll time interval (milliseconds)
-- return queue Ids that satisfy criteria

local counters_db = ARGV[1]
local counters_table_name = ARGV[2]
local poll_time = tonumber(ARGV[3])
local poll_time = tonumber(ARGV[3]) * 1000

local rets = {}

Expand Down