summaryrefslogtreecommitdiff
path: root/x11perf.c
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2010-11-23 14:41:33 -0500
committerPeter Harris <pharris@opentext.com>2010-11-23 14:41:41 -0500
commite7917bbec06e5c8e17f07b0eb833602b33111f08 (patch)
tree23582d4f631786978817382af6b098861a6a5531 /x11perf.c
parent5072fb464ffebcd97ec3a33cbff7095c3ec16225 (diff)
parentcc84118bd700745f02c65b2d6900e512e4c333af (diff)
Merge fixes from git://anongit.freedesktop.org/~peterh/x11perf
Diffstat (limited to 'x11perf.c')
-rw-r--r--x11perf.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/x11perf.c b/x11perf.c
index 15eb04d..c5129d7 100644
--- a/x11perf.c
+++ b/x11perf.c
@@ -282,7 +282,7 @@ RoundTo3Digits(double d)
static void
-ReportTimes(double usecs, int n, char *str, int average)
+ReportTimes(double usecs, long long n, char *str, int average)
{
double msecsperobj, objspersec;
@@ -296,14 +296,14 @@ ReportTimes(double usecs, int n, char *str, int average)
objspersec = RoundTo3Digits(objspersec);
if (average) {
- printf("%7d trep @ %8.4f msec (%8.1f/sec): %s\n",
+ printf("%7lld trep @ %8.4f msec (%8.1f/sec): %s\n",
n, msecsperobj, objspersec, str);
} else {
- printf("%7d reps @ %8.4f msec (%8.1f/sec): %s\n",
+ printf("%7lld reps @ %8.4f msec (%8.1f/sec): %s\n",
n, msecsperobj, objspersec, str);
}
} else {
- printf("%6d %sreps @ 0.0 msec (unmeasurably fast): %s\n",
+ printf("%6lld %sreps @ 0.0 msec (unmeasurably fast): %s\n",
n, average ? "t" : "", str);
}
@@ -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,
@@ -838,7 +839,7 @@ static void
ProcessTest(XParms xp, Test *test, int func, unsigned long pm, char *label)
{
double time, totalTime;
- int reps;
+ long long reps;
int j;
xp->planemask = pm;