summaryrefslogtreecommitdiff
path: root/benchmarks/gem_latency.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/gem_latency.c')
-rw-r--r--benchmarks/gem_latency.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c
index 2c4d0ef9..72d58955 100644
--- a/benchmarks/gem_latency.c
+++ b/benchmarks/gem_latency.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <fcntl.h>
#include <inttypes.h>
+#include <limits.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
@@ -579,8 +580,8 @@ int main(int argc, char **argv)
case 't':
/* How long to run the benchmark for (seconds) */
time = atoi(optarg);
- if (time < 1)
- time = 1;
+ if (time < 0)
+ time = INT_MAX;
break;
case 'f':