Message ID | 1261718616-12864-1-git-send-email-yzhou@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index cc314d4..7229b79 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -854,7 +854,11 @@ class VM: mem_size = 0 for m in mem: mem_size += int(m) - if not "MB" in mem_str: + if "GB" in mem_str: + mem_size *= 1024 + elif "MB" in mem_str: + pass + else: mem_size /= 1024 return int(mem_size) return None