We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d637c9 commit 9b79d3aCopy full SHA for 9b79d3a
common.py
@@ -784,11 +784,11 @@ def prettyPrintFileSize(fileSizeBytesWithSign):
784
sign = '-'
785
786
if fileSizeBytes >= 1e9:
787
- return "{}{:.1f}".format(sign, fileSizeBytes / 1e9).strip('0').strip('.') + ' GB'
+ return "{}{:.1f}".format(sign, fileSizeBytes / 1e9) + ' GB'
788
elif fileSizeBytes >= 1e6:
789
- return "{}{:.0f}".format(sign, fileSizeBytes / 1e6).strip('0').strip('.') + ' MB'
+ return "{}{:.0f}".format(sign, fileSizeBytes / 1e6) + ' MB'
790
elif fileSizeBytes > 0:
791
- return "{}{:.0f}".format(sign, fileSizeBytes / 1e3).strip('0').strip('.') + ' KB'
+ return "{}{:.0f}".format(sign, fileSizeBytes / 1e3) + ' KB'
792
else:
793
return "0 KB"
794
0 commit comments