1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix pretty_bytes for exa- and zettabytes

This commit is contained in:
Antti Rasinen 2013-07-16 13:09:56 +03:00
parent fa9635478b
commit b12cc909a9

View file

@ -927,8 +927,8 @@ class AnsibleModule(object):
def pretty_bytes(self,size): def pretty_bytes(self,size):
ranges = ( ranges = (
(1<<50L, 'ZB'), (1<<70L, 'ZB'),
(1<<50L, 'EB'), (1<<60L, 'EB'),
(1<<50L, 'PB'), (1<<50L, 'PB'),
(1<<40L, 'TB'), (1<<40L, 'TB'),
(1<<30L, 'GB'), (1<<30L, 'GB'),