Skip to content

Commit 46daad0

Browse files
authored
[syncd] Fix the error log while running lua plugin (sonic-net#3974)
What I did Fix sonic-net#24342 Why I did it Variable is uninitialized which is causing the error logs mentioned in the issue during startup
1 parent 5671e08 commit 46daad0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

orchagent/port_rates.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ local function compute_rate(port)
145145
logit(initialized)
146146

147147
-- FEC BER
148-
local fec_corr_bits, fec_uncorr_frames, maxT
148+
local fec_corr_bits, fec_uncorr_frames
149+
local maxT = -1
149150
local fec_corr_bits_ber_new, fec_uncorr_bits_ber_new = -1, -1
150151
-- HLD review suggest to use the statistical average when calculate the post fec ber
151152
local rs_average_frame_ber = 1e-8

0 commit comments

Comments
 (0)