From b821f3264d8f5cc455f96cba935c0459dd3f909a Mon Sep 17 00:00:00 2001 From: Gang Tao Date: Wed, 4 Mar 2026 04:24:53 +0000 Subject: [PATCH] [Celestica][Ladakh800bcls] fix check error 'laneStat.get_ber() <= laneStat.get_maxBer()' in Prbs_ASIC_P31_TO_ASIC_P31.prbsSanity --- fboss/agent/hw/common/PrbsStatsEntry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fboss/agent/hw/common/PrbsStatsEntry.h b/fboss/agent/hw/common/PrbsStatsEntry.h index 4f4f7c34ad326..057cabfa31e56 100644 --- a/fboss/agent/hw/common/PrbsStatsEntry.h +++ b/fboss/agent/hw/common/PrbsStatsEntry.h @@ -68,7 +68,7 @@ class PrbsStatsEntry { if (duration.count() == 0) { return; } - double ber = (num_errors * 1000) / (rate_ * duration.count()); + double ber = (num_errors * 1000.0) / (rate_ * duration.count()); if (ber > maxBer_) { maxBer_ = ber; }