From 3803e00367413260cbb543c3c4ed13ae2d8fd194 Mon Sep 17 00:00:00 2001 From: Sake Blok Date: Tue, 27 Jun 2017 22:04:33 +0200 Subject: Add option to use wall-clock intervals 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 Tested-by: Petri Dish Buildbot Reviewed-by: Sake Blok --- capture_opts.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'capture_opts.h') diff --git a/capture_opts.h b/capture_opts.h index d9ab3d86ab..2fc04a339c 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -298,6 +298,8 @@ typedef struct capture_options_tag { gboolean has_file_duration; /**< TRUE if ring duration specified */ gint32 file_duration; /**< Switch file after n seconds */ + gboolean has_file_interval; /**< TRUE if ring interval specified */ + gint32 file_interval; /**< Create time intervals of n seconds */ gboolean has_ring_num_files; /**< TRUE if ring num_files specified */ guint32 ring_num_files; /**< Number of multiple buffer files */ -- cgit v1.2.1