From 4ed22fe532123f81e618269e9a77b7b41e0e9cad Mon Sep 17 00:00:00 2001 From: Sitsofe Wheeler Date: Fri, 24 Feb 2017 01:38:18 +0000 Subject: [PATCH] fio: fix overflow trying to use 'd' suffix Fix overflow that happened when using the 'd' time suffix on platforms with 32 bit longs which led to a time of less than 10 minutes being used. --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index fc508b67..fd5605f0 100644 --- a/parse.c +++ b/parse.c @@ -167,7 +167,7 @@ static unsigned long long get_mult_time(const char *str, int len, else if (!strcmp("h", c)) mult = 60 * 60 * 1000000UL; else if (!strcmp("d", c)) - mult = 24 * 60 * 60 * 1000000UL; + mult = 24 * 60 * 60 * 1000000ULL; free(c); return mult; -- 2.25.1