summaryrefslogtreecommitdiffstats
path: root/cli/objects/disks.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects/disks.py')
-rw-r--r--cli/objects/disks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/objects/disks.py b/cli/objects/disks.py
index c7315af..f38f420 100644
--- a/cli/objects/disks.py
+++ b/cli/objects/disks.py
@@ -30,7 +30,7 @@ class OgDisk():
def setup_disk(rest, args):
def parse_size(size):
size = size.upper()
- units = {"M": 10**3, "G": 10**6, "T": 10**9} # Mapped to K
+ units = {"M": 1024, "G": 1024**2, "T": 1024**3} # Mapped to K
# size = re.sub(r'(\d+)([MGT])', r'\1 \2', size)
match = re.match(r'(\d+)([MGT])', size)
if match: