typedef struct rlc_lte_stat_t {
GtkTreeView *ue_table;
rlc_lte_ep_t *ep_list;
+ guint32 total_frames;
GtkTreeView *channel_table;
} rlc_lte_stat_t;
gtk_window_set_title(GTK_WINDOW(rlc_lte_stat_dlg_w), title);
}
- g_snprintf(title, sizeof(title), "UL/DL-SCH data (0 UEs)");
+ g_snprintf(title, sizeof(title), "0 UEs");
gtk_frame_set_label(GTK_FRAME(rlc_lte_stat_ues_lb), title);
+ rlc_lte_stat->total_frames = 0;
+
/* Remove all entries from the UE list */
store = GTK_LIST_STORE(gtk_tree_view_get_model(rlc_lte_stat->ue_table));
gtk_list_store_clear(store);
return 0;
}
+ /* Inc top-level frame count */
+ hs->total_frames++;
+
/* For per-UE data, must create a new row if none already existing */
if (!hs->ep_list) {
/* Allocate new list */
/* Set title that shows how many UEs currently in table */
for (tmp = list; (tmp!=NULL); tmp=tmp->next, number_of_ues++);
- g_snprintf(title, sizeof(title), "UL/DL-SCH data (%u UEs)", number_of_ues);
+ g_snprintf(title, sizeof(title), "%u UEs", number_of_ues);
gtk_frame_set_label(GTK_FRAME(rlc_lte_stat_ues_lb), title);
/* Update title to include number of UEs and frames */
g_snprintf(title, sizeof(title), "Wireshark: LTE RLC Traffic Statistics: %s (%u UEs, %u frames)",
cf_get_display_name(&cfile),
number_of_ues,
- 0);
+ hs->total_frames);
gtk_window_set_title(GTK_WINDOW(rlc_lte_stat_dlg_w), title);