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:
Daniel Vetter 2012-10-02 16:09:00 +02:00
parent 4c7fc65cb6
commit cdad308a4b

View File

@ -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);