diff options
Diffstat (limited to 'programs/fullbench.c')
-rw-r--r-- | programs/fullbench.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/fullbench.c b/programs/fullbench.c index 51e0e9a..40d95e5 100644 --- a/programs/fullbench.c +++ b/programs/fullbench.c @@ -693,6 +693,7 @@ int fullSpeedBench(char** fileNamesTable, int nbFiles) } milliTime = BMK_GetMilliSpan(milliTime); + nb_loops += !nb_loops; /* avoid division by zero */ averageTime = (double)milliTime / nb_loops; if (averageTime < bestTime) bestTime = averageTime; cSize=0; for (chunkNb=0; chunkNb<nbChunks; chunkNb++) cSize += chunkP[chunkNb].compressedSize; |