projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'size_perc' of https://github.com/sitsofe/fio
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index fc508b674cff11555d2f3e5f73aea7a32d7cd101..4d4fdddeae573f12e10270291785401029399d53 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-135,6
+135,7
@@
static unsigned long long get_mult_time(const char *str, int len,
const char *p = str;
char *c;
unsigned long long mult = 1;
const char *p = str;
char *c;
unsigned long long mult = 1;
+ int i;
/*
* Go forward until we hit a non-digit, or +/- sign
/*
* Go forward until we hit a non-digit, or +/- sign
@@
-153,7
+154,7
@@
static unsigned long long get_mult_time(const char *str, int len,
}
c = strdup(p);
}
c = strdup(p);
- for (i
nt i
= 0; i < strlen(c); i++)
+ for (i = 0; i < strlen(c); i++)
c[i] = tolower(c[i]);
if (!strncmp("us", c, 2) || !strncmp("usec", c, 4))
c[i] = tolower(c[i]);
if (!strncmp("us", c, 2) || !strncmp("usec", c, 4))
@@
-167,7
+168,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))
else if (!strcmp("h", c))
mult = 60 * 60 * 1000000UL;
else if (!strcmp("d", c))
- mult = 24 * 60 * 60 * 1000000UL;
+ mult = 24 * 60 * 60 * 1000000UL
L
;
free(c);
return mult;
free(c);
return mult;