diff --git a/orchagent/pfc_restore.lua b/orchagent/pfc_restore.lua index ae0af506d506..5b3e4ed04649 100644 --- a/orchagent/pfc_restore.lua +++ b/orchagent/pfc_restore.lua @@ -24,7 +24,7 @@ for i = n, 1, -1 do if not big_red_switch_mode and pfc_wd_status ~= 'operational' and pfc_wd_action ~= 'alert' and restoration_time and restoration_time ~= '' then restoration_time = tonumber(restoration_time) local time_left = redis.call('HGET', counters_table_name .. ':' .. KEYS[i], 'PFC_WD_RESTORATION_TIME_LEFT') - if time_left == nil then + if not time_left then time_left = restoration_time else time_left = tonumber(time_left)