Skip to content

Commit

Permalink
Printing decimal total size, to avoid things like "[+] Narrowed down …
Browse files Browse the repository at this point in the history
…to 80 files (total size 0 MB)"
  • Loading branch information
eranzim committed Jan 5, 2022
1 parent 4b4d4ef commit deb2dab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions winafl-cmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,12 +741,12 @@ def main(argc, argv):
print()
logging.info('[+] Original set was composed of %d files', len(inputs))
logging.info(
'[+] Effective set was composed of %d files (total size %d MB).',
effective_len, (totalsize / 1024) / 1024
'[+] Effective set was composed of %d files (total size %.2f MB).',
effective_len, (totalsize / 1024.) / 1024.
)
logging.info(
'[+] Narrowed down to %d files (total size %d MB).',
len(minset), (minsetsize / 1024) / 1024
'[+] Narrowed down to %d files (total size %.2f MB).',
len(minset), (minsetsize / 1024.) / 1024.
)

if args.dry_run is False:
Expand Down

0 comments on commit deb2dab

Please sign in to comment.