From 30f1ca3a7565034426fd43c9af6e378c90c5b37a Mon Sep 17 00:00:00 2001 From: Vivek Date: Tue, 4 Nov 2025 11:46:50 -0800 Subject: [PATCH] [syncd] Fix the error log while running lua plugin --- orchagent/port_rates.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orchagent/port_rates.lua b/orchagent/port_rates.lua index 1f9322a19c..0ae069a6c7 100644 --- a/orchagent/port_rates.lua +++ b/orchagent/port_rates.lua @@ -145,7 +145,8 @@ local function compute_rate(port) logit(initialized) -- FEC BER - local fec_corr_bits, fec_uncorr_frames, maxT + local fec_corr_bits, fec_uncorr_frames + local maxT = -1 local fec_corr_bits_ber_new, fec_uncorr_bits_ber_new = -1, -1 -- HLD review suggest to use the statistical average when calculate the post fec ber local rs_average_frame_ber = 1e-8