dom0/utils: minor for for parse_size

This commit is contained in:
Marek Marczykowski 2012-03-28 00:20:13 +02:00
parent 262400c6d8
commit 5924d2fcc3

View File

@ -78,7 +78,7 @@ def parse_size(size):
size = size.strip().upper()
if size.isdigit():
return size
return int(size)
for unit, multiplier in units:
if size.endswith(unit):