summaryrefslogtreecommitdiff
path: root/benchmarks/gem_wsim.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r--benchmarks/gem_wsim.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index b6e10ae1..df588fe1 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -444,7 +444,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w)
fstart = NULL;
tmpl = strtol(field, &sep, 10);
- if (tmpl == 0 || tmpl == LONG_MIN || tmpl == LONG_MAX) {
+ if (tmpl <= 0 || tmpl == LONG_MIN || tmpl == LONG_MAX) {
if (verbose)
fprintf(stderr,
"Invalid duration at step %u!\n",
@@ -455,7 +455,7 @@ parse_workload(struct w_arg *arg, unsigned int flags, struct workload *app_w)
if (sep && *sep == '-') {
tmpl = strtol(sep + 1, NULL, 10);
- if (tmpl == 0 ||
+ if (tmpl <= 0 || tmpl <= step.duration.min ||
tmpl == LONG_MIN || tmpl == LONG_MAX) {
if (verbose)
fprintf(stderr,