summaryrefslogtreecommitdiff
path: root/tap-comparestat.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-06-24 02:45:23 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-06-24 02:45:23 +0000
commit13a6a325c3635dafb44f3c661ae46416efaa726b (patch)
tree76b184a9194f6ad8375d1657588d4ae9da2e5aea /tap-comparestat.c
parent343c20e2157cd11d9a1fd054200a5ed11729d99d (diff)
downloadwireshark-13a6a325c3635dafb44f3c661ae46416efaa726b.tar.gz
Print the filter string, if one was specified, just like Wireshark does.
svn path=/trunk/; revision=37780
Diffstat (limited to 'tap-comparestat.c')
-rw-r--r--tap-comparestat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap-comparestat.c b/tap-comparestat.c
index 2215355ccd..81b063b2d9 100644
--- a/tap-comparestat.c
+++ b/tap-comparestat.c
@@ -490,7 +490,7 @@ comparestat_draw(void *prs)
cs->stats.variance=compare_variance;
/* add statistic string */
- statis_string=g_strdup_printf("Compare Statistics: \nNumber of packets total:%i 1st file:%i, 2nd file:%i\nScopes:\t start:%i stop:%i\nand:\t start:%i stop:%i\nEqual packets: %i \nAllowed variation: %f \nAverage time difference: %f\n", (first_file_amount+second_file_amount), first_file_amount, second_file_amount, cs->start_packet_nr_first, cs->stop_packet_nr_first, cs->start_packet_nr_second, cs->stop_packet_nr_second, cs->stats.num, cs->stats.variance, fabs(get_average(&cs->stats.tot, cs->stats.num)));
+ statis_string=g_strdup_printf("Compare Statistics: \nFilter: %s\nNumber of packets total:%i 1st file:%i, 2nd file:%i\nScopes:\t start:%i stop:%i\nand:\t start:%i stop:%i\nEqual packets: %i \nAllowed variation: %f \nAverage time difference: %f\n", cs->filter ? cs->filter : "", (first_file_amount+second_file_amount), first_file_amount, second_file_amount, cs->start_packet_nr_first, cs->stop_packet_nr_first, cs->start_packet_nr_second, cs->stop_packet_nr_second, cs->stats.num, cs->stats.variance, fabs(get_average(&cs->stats.tot, cs->stats.num)));
printf("\n");
printf("===================================================================\n");