diff options
author | Michael Mann <mmann78@netscape.net> | 2015-10-03 11:56:43 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-10-05 12:35:52 +0000 |
commit | 9b83b091b45e8605a95f664a3c9bbd03090991a8 (patch) | |
tree | 71a27d9a13f828187babf05da23da18629e9e979 /plugins/stats_tree | |
parent | 32f872cbb38da07cd4e128c699777efae6bb1e09 (diff) |
Don't count packets twice for average using avg_stat_node_add_value_notick.
Bug: 10535
Change-Id: I9c61a1f10f257bc6dd390c2a9370653bbd45b205
Reviewed-on: https://code.wireshark.org/review/10772
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins/stats_tree')
-rw-r--r-- | plugins/stats_tree/pinfo_stats_tree.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/stats_tree/pinfo_stats_tree.c b/plugins/stats_tree/pinfo_stats_tree.c index 451bd16d39..c1ce818083 100644 --- a/plugins/stats_tree/pinfo_stats_tree.c +++ b/plugins/stats_tree/pinfo_stats_tree.c @@ -273,10 +273,6 @@ static void plen_stats_tree_init(stats_tree *st) { static int plen_stats_tree_packet(stats_tree *st, packet_info *pinfo, epan_dissect_t *edt _U_, const void *p _U_) { tick_stat_node(st, st_str_plen, 0, FALSE); - /* also add value for averages calculation. we call the notick version of */ - /* avg_stat_node_add_value and call tick_stat_node separately. this allows */ - /* compatiblity with older wireshark versions with no average support. */ - avg_stat_node_add_value_notick(st, st_str_plen, 0, FALSE, pinfo->fd->pkt_len); stats_tree_tick_range(st, st_str_plen, 0, pinfo->fd->pkt_len); |