mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1991766 [Small blemishes in the book details.](https://bugs.launchpad.net/calibre/+bug/1991766)
This commit is contained in:
parent
e708be5e61
commit
104a567adc
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user