This commit is contained in:
Kovid Goyal 2022-10-09 11:28:22 +05:30
parent e708be5e61
commit 104a567adc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -26,8 +26,8 @@ def human_readable(size, precision=2):
""" Convert a size in bytes into megabytes """
ans = size/(1024*1024)
if ans < 0.1:
return '<0.1MB'
return ('%.'+str(precision)+'f'+ 'MB') % ans
return '<0.1 MB'
return ('%.'+str(precision)+'f'+ ' MB') % ans
NULL_VALUES = {