aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/http_stat.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-13 12:19:24 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-13 12:19:24 +0000
commit48739e924ee5286635a7f00f2e95f3c2b2b91135 (patch)
tree5b857a4e760540e0949c87a6e7353e1208d5468a /gtk/http_stat.c
parentdb94eb09236eef1e2ed012564e05c672bdf52e94 (diff)
fixed httpstat_reset, so reloading a capture file won't increase statistic values more and more
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10866 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/http_stat.c')
-rw-r--r--gtk/http_stat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/http_stat.c b/gtk/http_stat.c
index 5bddfa4226..4ac5595bde 100644
--- a/gtk/http_stat.c
+++ b/gtk/http_stat.c
@@ -1,7 +1,7 @@
/* http_stat.c
* http_stat 2003 Jean-Michel FAYARD
*
- * $Id: http_stat.c,v 1.28 2004/04/12 09:48:18 ulfl Exp $
+ * $Id: http_stat.c,v 1.29 2004/05/13 12:19:24 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -259,10 +259,11 @@ http_reset_hash_requests(gchar *key _U_ , http_request_methode_t *data, gpointer
static void
httpstat_reset(void *psp )
{
- httpstat_t *sp=psp;
- if (!sp) {
+ httpstat_t *sp=psp;
+ if (sp) {
+ sp->packets = 0;
g_hash_table_foreach( sp->hash_responses, (GHFunc)http_reset_hash_responses, NULL);
- g_hash_table_foreach( sp->hash_responses, (GHFunc)http_reset_hash_requests, NULL);
+ g_hash_table_foreach( sp->hash_requests, (GHFunc)http_reset_hash_requests, NULL);
}
}