add sector id to ues in mac metrics

master
Francisco 4 years ago committed by Francisco Paisana
parent 43e0a3209d
commit f1c05f6826

@ -525,6 +525,11 @@ void ue::metrics_read(mac_metrics_t* metrics_)
metrics.ul_buffer = sched->get_ul_buffer(rnti); metrics.ul_buffer = sched->get_ul_buffer(rnti);
metrics.dl_buffer = sched->get_dl_buffer(rnti); metrics.dl_buffer = sched->get_dl_buffer(rnti);
// set PCell sector id
std::array<int, SRSLTE_MAX_CARRIERS> cc_list = sched->get_enb_ue_cc_map(rnti);
auto it = std::find(cc_list.begin(), cc_list.end(), 0);
metrics.cc_idx = std::distance(cc_list.begin(), it);
memcpy(metrics_, &metrics, sizeof(mac_metrics_t)); memcpy(metrics_, &metrics, sizeof(mac_metrics_t));
phr_counter = 0; phr_counter = 0;

Loading…
Cancel
Save