aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-10-06 00:28:36 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-10-06 00:28:36 +0000
commit70d49795575878ccb1f4a48536243866ba6a61ef (patch)
tree1a3be3764ccd267dd85d1c0e1cbd895fdc78eddb
parentec98957e13a01ebbb246e9b6fb79d58c15fabeac (diff)
bugfix: reset the packet counter to zero, if switching to the next "multiple file". This fixes the live update of the packet output after switching to another capture file
svn path=/trunk/; revision=16135
-rw-r--r--capture_loop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/capture_loop.c b/capture_loop.c
index ade13389c5..c6dfd67fe6 100644
--- a/capture_loop.c
+++ b/capture_loop.c
@@ -1337,6 +1337,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
}
wtap_dump_flush(ld.wtap_pdh);
sync_pipe_filename_to_parent(capture_opts->save_file);
+ ld.packets_sync_pipe = 0;
} else {
/* File switch failed: stop here */
ld.go = FALSE;
@@ -1412,6 +1413,7 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
cnd_reset(cnd_autostop_size);
wtap_dump_flush(ld.wtap_pdh);
sync_pipe_filename_to_parent(capture_opts->save_file);
+ ld.packets_sync_pipe = 0;
} else {
/* File switch failed: stop here */
ld.go = FALSE;