diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index 657e5a16..21851dfb 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -79,11 +79,10 @@ static void tbf_print_vty_info(struct vty *vty, struct gprs_rlcmac_tbf *tbf) ul_tbf->window_size(), win->v_q(), win->v_r()); vty_out(vty, "%s", VTY_NEWLINE); vty_out(vty, " TBF Statistics:%s", VTY_NEWLINE); - if (GPRS == ms_mode(tbf->ms())) { + if (ul_tbf->m_ul_gprs_ctrs) vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_gprs_ctrs); - } else { + if (ul_tbf->m_ul_egprs_ctrs) vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_egprs_ctrs); - } } if (dl_tbf) { gprs_rlc_dl_window *win = static_cast(dl_tbf->window()); @@ -92,11 +91,10 @@ static void tbf_print_vty_info(struct vty *vty, struct gprs_rlcmac_tbf *tbf) win->window_stalled() ? " STALLED" : ""); vty_out(vty, "%s", VTY_NEWLINE); vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs); - if (GPRS == ms_mode(tbf->ms())) { + if (dl_tbf->m_dl_gprs_ctrs) vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_gprs_ctrs); - } else { + if (dl_tbf->m_dl_egprs_ctrs) vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_egprs_ctrs); - } } vty_out(vty, "%s%s", VTY_NEWLINE, VTY_NEWLINE); }