From 4ede2f126a1b753d7a56dea67e0e098441d4ff23 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Tue, 13 Aug 2013 15:35:33 -0700 Subject: [PATCH] utils: Add missing "B" for pretty_size() * Add missing unit for megabytes, should print "MB". --- libmproxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 258626dbb..961c6618b 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -74,7 +74,7 @@ def pretty_size(size): suffixes = [ ("B", 2**10), ("kB", 2**20), - ("M", 2**30), + ("MB", 2**30), ] for suf, lim in suffixes: if size >= lim: