Merge remote-tracking branch 'origin/mac-e2-ci' into integration_2025_w46 (!3752)
[MAC] Add UL total/used aggregated MAC stats; [E2 agent] Properly calculate used UE PRBs in KPM; [CI] Simplify and improve the Undeploy_Object() and implement Stop_Object() - Create common dlul_mac_stats_t struct for both DL and UL total/used aggregated PRBs - Use correct unit [%] for RRU.PrbTotDl and RRU.PrbTotUl , instead of [PRBs] - Use correct unit [Mb] for DRB.PdcpSduVolumeDL and DRB.PdcpSduVolumeUL [kb] - Implement Stop_Object() (docker compose stop = SIGTERM) - Simplify the Undeploy_Object() function - Improve the logging for Deploy/Undeploy_Object() functions - OAI-FlexRIC CI: properly stop all the containers (one by one or a subgroup of running containers), and rename oai-flexric to nearRT-RIC container
This commit is contained in:
@@ -105,10 +105,10 @@ static int get_stats(char *buf, int debug, telnet_printfunc_t prnt)
|
||||
int bw_index = get_supported_band_index(scs, fr, nrb);
|
||||
int bw_mhz = get_supported_bw_mhz(fr, bw_index);
|
||||
|
||||
const mac_stats_t *stat = &mac->mac_stats;
|
||||
static mac_stats_t last = {0};
|
||||
int diff_used = stat->used_prb_aggregate - last.used_prb_aggregate;
|
||||
int diff_total = stat->total_prb_aggregate - last.total_prb_aggregate;
|
||||
const dlul_mac_stats_t *stat = &mac->mac_stats;
|
||||
static dlul_mac_stats_t last = {0};
|
||||
int diff_used = stat->dl.used_prb_aggregate - last.dl.used_prb_aggregate;
|
||||
int diff_total = stat->dl.total_prb_aggregate - last.dl.total_prb_aggregate;
|
||||
int load = diff_total > 0 ? 100 * diff_used / diff_total : 0;
|
||||
last = *stat;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user