diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-10-31 11:34:35 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-11-01 05:09:10 +0000 |
commit | 8b977a43d68d8fd9c2c7e7b8ccc0711df13c64ee (patch) | |
tree | 65e161a12e70ac3dade19f0781fa26315a419d94 /capchild | |
parent | 01784a594698d5d358c1d80319e77b68c939f7d7 (diff) |
Move condition logic to dumpcap.c
Move the condition logic from capture_stop_conditions.c to dumpcap.c.
Remove capture_stop_conditions.[ch] and conditions.[ch].
Switch duration values to doubles.
Change-Id: Ifa74fb13ec8fc923b0721597a6cf071d72069ea0
Reviewed-on: https://code.wireshark.org/review/30440
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'capchild')
-rw-r--r-- | capchild/capture_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index 06232e4ea6..c3ae9d31c4 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -279,7 +279,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf if (capture_opts->has_file_duration) { argv = sync_pipe_add_arg(argv, &argc, "-b"); - g_snprintf(sfile_duration, ARGV_NUMBER_LEN, "duration:%d",capture_opts->file_duration); + g_snprintf(sfile_duration, ARGV_NUMBER_LEN, "duration:%f",capture_opts->file_duration); argv = sync_pipe_add_arg(argv, &argc, sfile_duration); } @@ -316,7 +316,7 @@ sync_pipe_start(capture_options *capture_opts, capture_session *cap_session, inf if (capture_opts->has_autostop_duration) { argv = sync_pipe_add_arg(argv, &argc, "-a"); - g_snprintf(sautostop_duration, ARGV_NUMBER_LEN, "duration:%d",capture_opts->autostop_duration); + g_snprintf(sautostop_duration, ARGV_NUMBER_LEN, "duration:%f",capture_opts->autostop_duration); argv = sync_pipe_add_arg(argv, &argc, sautostop_duration); } |