mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
benchmarks/gem_latency: Allow setting an infinite time
Well, 24000 years. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
3c1362f0a6
commit
51bb53663e
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user