fix mb-byte conversion for non-numa VMs

This commit is contained in:
illustris
2023-12-11 15:34:06 +05:30
parent ce6ecf63ff
commit 66b09d0fa5

View File

@@ -56,7 +56,7 @@ def parse_mem(cmdline):
# lazy way to detect NUMA
# the token after -m might look something like 'size=1024,slots=255,maxmem=4194304M'
if ret.isnumeric():
return int(ret)
return int(ret)*1024
# probably using NUMA
ret = 0