Print platform information while processing environment

This commit is contained in:
Ivan Kravets
2018-02-07 19:44:02 +02:00
parent 904c5464c3
commit f7023aa8ff
5 changed files with 19 additions and 14 deletions

View File

@@ -755,9 +755,9 @@ def format_filesize(filesize):
if filesize >= unit:
continue
if filesize % (base**(i + 1)):
return "%.2f%s" % ((base * filesize / unit), suffix)
return "%.2f%sB" % ((base * filesize / unit), suffix)
break
return "%d%s" % ((base * filesize / unit), suffix)
return "%d%sB" % ((base * filesize / unit), suffix)
def rmtree_(path):