summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorSitsofe Wheeler <sitsofe@yahoo.com>2017-02-24 01:38:18 +0000
committerSitsofe Wheeler <sitsofe@yahoo.com>2017-02-24 01:45:07 +0000
commit4ed22fe532123f81e618269e9a77b7b41e0e9cad (patch)
tree426088ebee34b9bbee92b18f600edceeaa267f2a /parse.c
parentc9057434a99a85f643ce433c7fec9b8f7fad9761 (diff)
downloadfio-4ed22fe532123f81e618269e9a77b7b41e0e9cad.tar.gz
fio-4ed22fe532123f81e618269e9a77b7b41e0e9cad.tar.bz2
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.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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;