From 3ef700482615a0d6c75f04f37c62a4e8d3185980 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 4 Oct 2003 03:10:18 +0000 Subject: Fix to IO-Stat. IO-Stat failed to produce Advanced/COUNT(*) statistics for fields of type FT_NONE. Fixed. Now it is possible to do : Advanced/COUNT(*) Filter:tcp.analysis.retransmission Field:tcp.analysis.retransmission Advanced/COUNT(*) Filter:tcp.analysis.duplicate_ack Field:tcp.analysis.duplicate_ack And it will plot the number of Retransmissions and Duplicate ACKs seen in each time interval. svn path=/trunk/; revision=8609 --- gtk/io_stat.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gtk/io_stat.c b/gtk/io_stat.c index 23cbf55446..1b51f393e4 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -1,7 +1,7 @@ /* io_stat.c * io_stat 2002 Ronnie Sahlberg * - * $Id: io_stat.c,v 1.30 2003/09/26 02:09:44 guy Exp $ + * $Id: io_stat.c,v 1.31 2003/10/04 03:10:18 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -410,6 +410,15 @@ get_it_value(io_stat_t *io, io_stat_item_t *it, int adv_type, int calc_type) break; case COUNT_TYPE_ADVANCED: switch(adv_type){ + case FT_NONE: + switch(calc_type){ + case CALC_TYPE_COUNT: + value=it->frames; + break; + default: + break; + } + break; case FT_UINT8: case FT_UINT16: case FT_UINT24: -- cgit v1.2.3