We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118b3f0 commit d57f9a1Copy full SHA for d57f9a1
orchagent/pfc_restore.lua
@@ -24,7 +24,7 @@ for i = n, 1, -1 do
24
if not big_red_switch_mode and pfc_wd_status ~= 'operational' and pfc_wd_action ~= 'alert' and restoration_time and restoration_time ~= '' then
25
restoration_time = tonumber(restoration_time)
26
local time_left = redis.call('HGET', counters_table_name .. ':' .. KEYS[i], 'PFC_WD_RESTORATION_TIME_LEFT')
27
- if time_left == nil then
+ if not time_left then
28
time_left = restoration_time
29
else
30
time_left = tonumber(time_left)
0 commit comments