mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix for 287948 - fix overflow in calculation of ops/s
This commit is contained in:
parent
0af9c44eb9
commit
6ac5e73fd8
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user