diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-07-14 09:51:40 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-07-16 06:43:09 +0000 |
commit | 8147af211d2eadbc32b3039baabc2f6b74308217 (patch) | |
tree | 544398d5f49ddc7ac12123e6e570251f96aa2cb0 /wsutil/nstime.h | |
parent | 2377dff96cd4442f7ff666ec9eb4d2425395ee86 (diff) |
Editcap: Allow floating point split intervals.
Update the `-i` option to allow floating point values as suggested at
https://stackoverflow.com/questions/57004719/split-wireshark-to-miliseconds
Change-Id: I24028d409bc441ed3b45ac2179f7c42b2bc424bc
Reviewed-on: https://code.wireshark.org/review/33938
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil/nstime.h')
-rw-r--r-- | wsutil/nstime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/nstime.h b/wsutil/nstime.h index 273569a82b..3cb3b94f77 100644 --- a/wsutil/nstime.h +++ b/wsutil/nstime.h @@ -34,6 +34,9 @@ typedef struct { /* Initialize to zero */ #define NSTIME_INIT_ZERO {0, 0} +/* Initialize to unset */ +#define NSTIME_INIT_UNSET {0, G_MAXINT} + /* Initialize to a specified number of seconds and nanoseconds */ #define NSTIME_INIT_SECS_NSECS(secs, nsecs) {secs, nsecs} |