From: John Spray Date: Wed, 27 Jun 2018 15:26:51 +0000 (+0100) Subject: mgr/status: add exabytes unit X-Git-Tag: v14.0.1~950^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5e83a4da5f7162fb14160f779aa735d30bd5668f;p=ceph.git mgr/status: add exabytes unit So far I've only run into this from bugs, but hey, one day someone'll build a real cluster that big! Signed-off-by: John Spray --- diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index b4a0f25e0af7..e7662a4a3e57 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -67,7 +67,7 @@ class Module(MgrModule): """ factor = 1000 if decimal else 1024 - units = [' ', 'k', 'M', 'G', 'T', 'P'] + units = [' ', 'k', 'M', 'G', 'T', 'P', 'E'] unit = 0 while len("%s" % (int(n) // (factor**unit))) > width - 1: unit += 1