summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11perf.c1
1 files changed, 1 insertions, 0 deletions
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,