diff options
author | Sake Blok <sake@euronet.nl> | 2017-06-27 22:04:33 +0200 |
---|---|---|
committer | Sake Blok <sake.blok@SYN-bit.nl> | 2017-07-03 16:41:37 +0000 |
commit | 3803e00367413260cbb543c3c4ed13ae2d8fd194 (patch) | |
tree | e96b7c81846caec9343201ea80e8afeee68dc80c /ui/commandline.c | |
parent | 2c58ed569ed0c096d5640fd0da5825bcfef04aeb (diff) | |
download | wireshark-master.tar.gz |
Add the "interval" option to "-b". Each new capture starts at the
exact start of a time interval. For instance, using -b interval:3600
will start a new capture file at each whole hour.
Changed the duration option in the GUI interfaces to use the new
interval option.
Change-Id: I0180c43843f5d2f0c2f50153c9ce42ac7fa5aeae
Reviewed-on: https://code.wireshark.org/review/22428
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Sake Blok <sake.blok@SYN-bit.nl>
Diffstat (limited to 'ui/commandline.c')
-rw-r--r-- | ui/commandline.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/commandline.c b/ui/commandline.c index b7c1ef7db4..dc20e1505b 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -672,8 +672,10 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset) cmdarg_err("Ring buffer requested, but capture isn't being saved to a permanent file."); global_capture_opts.multi_files_on = FALSE; } - if (!global_capture_opts.has_autostop_filesize && !global_capture_opts.has_file_duration) { - cmdarg_err("Ring buffer requested, but no maximum capture file size or duration were specified."); + if (!global_capture_opts.has_autostop_filesize && + !global_capture_opts.has_file_duration && + !global_capture_opts.has_file_interval) { + cmdarg_err("Ring buffer requested, but no maximum capture file size, duration or interval were specified."); /* XXX - this must be redesigned as the conditions changed */ } } |