summaryrefslogtreecommitdiff
path: root/ui/gtk/flow_graph.c
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2014-06-22 12:53:48 -0700
committerBalint Reczey <balint@balintreczey.hu>2014-06-27 08:55:11 +0000
commita67b7f5b5c563e54ca630370cdf7f696e4ce59a5 (patch)
treef1af43d810fa6746f8fb60136048757d1d6c3c78 /ui/gtk/flow_graph.c
parent9ef47ae8c82abc1edc83408b4c2a93aaff40e282 (diff)
downloadwireshark-a67b7f5b5c563e54ca630370cdf7f696e4ce59a5.tar.gz
Use GQueue for generating statistics
This makes reversing the list back and forth to keep adding data at O(n) complexity obsolete. Bug: 9696 Change-Id: Ice77328b8f6c5bf72bbfcfd82e08d09d4f986d3f Reviewed-on: https://code.wireshark.org/review/2571 Reviewed-by: Balint Reczey <balint@balintreczey.hu> Tested-by: Balint Reczey <balint@balintreczey.hu>
Diffstat (limited to 'ui/gtk/flow_graph.c')
-rw-r--r--ui/gtk/flow_graph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gtk/flow_graph.c b/ui/gtk/flow_graph.c
index 53eeb1e5bf..aadf624d69 100644
--- a/ui/gtk/flow_graph.c
+++ b/ui/gtk/flow_graph.c
@@ -67,6 +67,7 @@ flow_graph_data_init(void) {
graph_analysis = (seq_analysis_info_t *)g_malloc0(sizeof(seq_analysis_info_t));
graph_analysis->type = SEQ_ANALYSIS_ANY;
graph_analysis->all_packets = TRUE;
+ graph_analysis->items = g_queue_new();
}