[PATCH] Clamp test time to positive values in x11perf
Peter Harris
peter.harris at hummingbird.com
Mon Oct 29 11:23:59 PDT 2007
If this is not the correct place to send x11perf patches, please let me
know.
If there is some jitter in the sync time, operations can complete in a
negative amount of time (confusing both humans and x11perfcomp).
---
x11perf.c | 1 +
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,
--
1.5.3.4
--
Hummingbird Connectivity - A Division of Open Text
Peter Harris http://connectivity.hummingbird.com
Research and Development Phone: +1 905 762 6001
peter.harris at hummingbird.com Toll Free: 1 877 359 4866
More information about the xorg
mailing list