fix mb-byte conversion for non-numa VMs
This commit is contained in:
parent
ce6ecf63ff
commit
66b09d0fa5
@ -56,7 +56,7 @@ def parse_mem(cmdline):
|
|||||||
# lazy way to detect NUMA
|
# lazy way to detect NUMA
|
||||||
# the token after -m might look something like 'size=1024,slots=255,maxmem=4194304M'
|
# the token after -m might look something like 'size=1024,slots=255,maxmem=4194304M'
|
||||||
if ret.isnumeric():
|
if ret.isnumeric():
|
||||||
return int(ret)
|
return int(ret)*1024
|
||||||
|
|
||||||
# probably using NUMA
|
# probably using NUMA
|
||||||
ret = 0
|
ret = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user