Skip to content

Commit

Permalink
Don't calculate avg2 compress time if minlevel not zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz authored and Dead2 committed Aug 18, 2020
1 parent 531fe09 commit 98577e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deflatebench.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,10 @@ def printreport(results, tempfiles):
### Totals
# Compression
avgcomppct = totcomppct/numlevels
avgcomppct2 = totcomppct2/(numlevels-1)
avgcomptime = totcomptime/(numlevels*numresults)
avgcomptime2 = totcomptime2/((numlevels-1)*numresults)
if cfgRuns['minlevel'] == 0:
avgcomppct2 = totcomppct2/(numlevels-1)
avgcomptime2 = totcomptime2/((numlevels-1)*numresults)

# Decompression
if cfgConfig['skipdecomp']:
Expand Down

0 comments on commit 98577e4

Please sign in to comment.