From a67b7f5b5c563e54ca630370cdf7f696e4ce59a5 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Sun, 22 Jun 2014 12:53:48 -0700 Subject: 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 Tested-by: Balint Reczey --- ui/tap-sequence-analysis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/tap-sequence-analysis.h') diff --git a/ui/tap-sequence-analysis.h b/ui/tap-sequence-analysis.h index d80a20aa5f..ab359d958f 100644 --- a/ui/tap-sequence-analysis.h +++ b/ui/tap-sequence-analysis.h @@ -71,7 +71,7 @@ typedef struct _seq_analysis_info { gboolean all_packets; /**< all packets vs only displayed */ gboolean any_addr; /**< any addr (DL+net) vs net-only */ int nconv; /**< number of conversations in the list */ - GList* list; /**< list with the graph analysis items */ + GQueue* items; /**< list with the graph analysis items */ GHashTable *ht; /**< hash table for retrieving graph analysis items */ address nodes[MAX_NUM_NODES]; /**< horizontal node list */ guint32 num_nodes; /**< actual number of nodes */ -- cgit v1.2.1