mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-12 17:02:57 +00:00
tests/flip_test: don't complain about timestamps in the future
those can happen due to the scanline vblank timestamp adjuster ...
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ static void page_flip_handler(int fd, unsigned int frame, unsigned int sec,
|
||||
|
||||
timersub(&pageflip_ts, &now, &diff);
|
||||
|
||||
if (diff.tv_sec > 0 || diff.tv_usec > 2000) {
|
||||
if (diff.tv_sec > 0 || (diff.tv_sec > 0 && diff.tv_usec > 2000)) {
|
||||
fprintf(stderr, "pageflip timestamp delayed for too long: %is, %iusec\n",
|
||||
(int) diff.tv_sec, (int) diff.tv_usec);
|
||||
exit(5);
|
||||
|
||||
Reference in New Issue
Block a user