Fix for 287948 - fix overflow in calculation of ops/s

This commit is contained in:
julien.pierre.bugs%sun.com 2005-03-25 02:59:07 +00:00
parent 0af9c44eb9
commit 6ac5e73fd8

View File

@ -427,7 +427,7 @@ main(int argc, char **argv)
TimingEnd(timeCtx);
printf("%ld iterations in %s\n",
iters, TimingGenerateString(timeCtx));
printf("%.2f operations/s .\n", (double)(iters*1000000) / (double)timeCtx->interval );
printf("%.2f operations/s .\n", ((double)(iters)*(double)1000000.0) / (double)timeCtx->interval );
TimingDivide(timeCtx, iters);
printf("one operation every %s\n", TimingGenerateString(timeCtx));