diff options
-rw-r--r-- | alot/mail/attachment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/mail/attachment.py b/alot/mail/attachment.py index b8673fb9..33c651d2 100644 --- a/alot/mail/attachment.py +++ b/alot/mail/attachment.py @@ -17,7 +17,7 @@ def _humanize_size(size): :returns: the human readable representation of size :rtype: str """ - for factor, format_string in ((1, '%i'), + for factor, format_string in ((1, '%iB'), (1024, '%iKiB'), (1024 * 1024, '%.1fMiB')): if size / factor < 1024: |