aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sip_stat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-03-30 18:55:47 +0000
committerGuy Harris <guy@alum.mit.edu>2004-03-30 18:55:47 +0000
commit3db0b315b701490f739300244fc82a280b4392fb (patch)
tree02635e98c660cf36e2edbbcabef97b643b9d86f5 /gtk/sip_stat.c
parent1ca8d227a2971c3ac74cd319bda56ee8180eb1dd (diff)
From Lars Roland: Tethereal version of SIP statistics tap, and fixes to
the Ethereal version. svn path=/trunk/; revision=10522
Diffstat (limited to 'gtk/sip_stat.c')
-rw-r--r--gtk/sip_stat.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/sip_stat.c b/gtk/sip_stat.c
index 536286f144..ade0c71acf 100644
--- a/gtk/sip_stat.c
+++ b/gtk/sip_stat.c
@@ -1,7 +1,7 @@
/* sip_stat.c
* sip_stat 2004 Martin Mathieson
*
- * $Id: sip_stat.c,v 1.2 2004/03/27 11:13:03 guy Exp $
+ * $Id: sip_stat.c,v 1.3 2004/03/30 18:55:47 guy Exp $
* Copied from http_stat.c
*
* Ethereal - Network traffic analyzer
@@ -325,10 +325,11 @@ static void
sipstat_reset(void *psp)
{
sipstat_t *sp = psp;
- if (!sp)
+ if (sp)
{
+ sp->packets = 0;
g_hash_table_foreach(sp->hash_responses, (GHFunc)sip_reset_hash_responses, NULL);
- g_hash_table_foreach(sp->hash_responses, (GHFunc)sip_reset_hash_requests, NULL);
+ g_hash_table_foreach(sp->hash_requests, (GHFunc)sip_reset_hash_requests, NULL);
}
}
@@ -447,6 +448,8 @@ sipstat_draw(void *psp)
/* Draw responses and requests from their tables */
g_hash_table_foreach(sp->hash_responses, (GHFunc)sip_draw_hash_responses, NULL);
g_hash_table_foreach(sp->hash_requests, (GHFunc)sip_draw_hash_requests, NULL);
+
+ gtk_widget_show_all(sp->win);
}