diff --git a/orchagent/pfc_detect_barefoot.lua b/orchagent/pfc_detect_barefoot.lua index e77137b2879..b270549a29b 100644 --- a/orchagent/pfc_detect_barefoot.lua +++ b/orchagent/pfc_detect_barefoot.lua @@ -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 = {} diff --git a/orchagent/pfc_detect_broadcom.lua b/orchagent/pfc_detect_broadcom.lua index e7106cbd24f..4f82b933176 100644 --- a/orchagent/pfc_detect_broadcom.lua +++ b/orchagent/pfc_detect_broadcom.lua @@ -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 = {} diff --git a/orchagent/pfc_detect_innovium.lua b/orchagent/pfc_detect_innovium.lua index d90f4d5a15b..cedd51baa32 100644 --- a/orchagent/pfc_detect_innovium.lua +++ b/orchagent/pfc_detect_innovium.lua @@ -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 = {} diff --git a/orchagent/pfc_detect_nephos.lua b/orchagent/pfc_detect_nephos.lua index bd0cb3e7694..d152fc5f8c7 100644 --- a/orchagent/pfc_detect_nephos.lua +++ b/orchagent/pfc_detect_nephos.lua @@ -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 = {}