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, }) }