Skip to content

Commit

Permalink
[pfcwd] Fix the polling interval time granularity (#1912)
Browse files Browse the repository at this point in the history
Fixes #8773
Pfcwd regressions were observed due to the changes in the PR sonic-net/sonic-sairedis#878. Hence aligning the polling interval in lua script to use microseconds

**How I verified it**
Ran pfcwd tests that were failing prior to this change and they passed
  • Loading branch information
neethajohn authored Sep 18, 2021
1 parent 14c937e commit d338bd0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
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

0 comments on commit d338bd0

Please sign in to comment.