diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-09 00:52:30 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-09 09:21:07 +0200 |
commit | 9ef4f9e6fe0c766395d00701131289bc2007c23c (patch) | |
tree | b31dd884a3bc14cb32112ee4b7e3873cbe9c9e42 /include | |
parent | 1eadd73e30deab778ddfc26e9222a4d23bedb140 (diff) |
src: support timeouts in milliseconds
currently the frontend uses seconds everywhere and
multiplies/divides by 1000.
Pass milliseconds around instead and extend the scanner to accept 'ms'
in timestrings.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/datatype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/datatype.h b/include/datatype.h index 3f612e52..aca08dec 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -264,7 +264,7 @@ extern const struct datatype * set_datatype_alloc(const struct datatype *orig_dtype, unsigned int byteorder); extern void set_datatype_destroy(const struct datatype *dtype); -extern void time_print(uint64_t seconds, struct output_ctx *octx); +extern void time_print(uint64_t msec, struct output_ctx *octx); extern struct error_record *time_parse(const struct location *loc, const char *c, uint64_t *res); |