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
Signed by: illustris
GPG Key ID: 56C8FC0B899FEFA3

View File

@ -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