ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Fix for SRT reset

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Greg Morris" <gmorris@xxxxxxxxxx>
Date: Tue, 31 Jan 2006 15:20:32 +0100
The SRT is broken if you hit the reload button or apply a filter. The table isn't cleared so each item in the list is duplicated and the second entries remain with initial values. This patch clears the GTK_CLIST so that the redundant entries no longer appear.
 
service_response_time_table.c.diff -> gtk/service_response_time_table.c
 
Please checkin...
 
Greg
Index: service_response_time_table.c
===================================================================
--- service_response_time_table.c	(revision 17132)
+++ service_response_time_table.c	(working copy)
@@ -549,6 +549,7 @@
 	for(i=0;i<rst->num_procs;i++){
 		time_stat_init(&rst->procedures[i].stats);
 	}
+	gtk_clist_clear(rst->table);
 }
 
 void