From 5846631d3fa1db70d75825f59f2447ffd9179a32 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Mon, 22 Sep 2025 11:22:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ims-mos/cct=E7=B4=AF=E5=8A=A0=E6=B1=82?= =?UTF-8?q?=E5=92=8C=E4=BF=9D=E7=95=992=E4=BD=8D=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/network_data/service/cdr_event_ims.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/network_data/service/cdr_event_ims.go b/src/modules/network_data/service/cdr_event_ims.go index 3fc7bcee..0bac207c 100644 --- a/src/modules/network_data/service/cdr_event_ims.go +++ b/src/modules/network_data/service/cdr_event_ims.go @@ -255,7 +255,7 @@ func (r CDREventIMS) CDRMOSHour(rmUID string, timestamp int64) []map[string]any data = append(data, map[string]any{ "timeGroup": fmt.Sprintf("%d", hour), "total": sums["total"], - "mosSum": sums["mosSum"], + "mosSum": float64(int(sums["mosSum"]*100)) / 100, "mosAvg": float64(int(sums["mosSum"]/sums["total"]*100)) / 100, }) } @@ -327,7 +327,7 @@ func (r CDREventIMS) CDRCCTHour(rmUID string, timestamp int64) []map[string]any data = append(data, map[string]any{ "timeGroup": fmt.Sprintf("%d", hour), "total": sums["total"], - "cctSum": sums["cctSum"], + "cctSum": float64(int(sums["cctSum"]*100)) / 100, "cctAvg": float64(int(sums["cctSum"]/sums["total"]*100)) / 100, }) }