From 17a30e7c65c0b03b71b5b1ac54ae3ba33ae3b42a Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Mon, 29 Oct 2007 11:29:32 -0400 Subject: Clamp test time to positive values. If there is some jitter in the sync time, operations can complete in a negative amount of time (confusing both humans and x11perfcomp). Signed-off-by: Peter Harris Reviewed-by: Adam Jackson --- x11perf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'x11perf.c') diff --git a/x11perf.c b/x11perf.c index 08c0062..c1fb5c2 100644 --- a/x11perf.c +++ b/x11perf.c @@ -647,6 +647,7 @@ DoTest(XParms xp, Test *test, int reps) HardwareSync(xp); time = ElapsedTime(syncTime); + if (time < 0.0) time = 0.0; CheckAbort (); if (drawToFakeServer) XQueryBestSize(xp->d, TileShape, tileToQuery, -- cgit v1.2.3