fix
This commit is contained in:
parent
721765bef0
commit
c2406ec9eb
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class VirtualMachine(object):
|
|||
def get_memory(self):
|
||||
mem_bytes = os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES') # e.g. 4015976448
|
||||
mem_gib = mem_bytes / (1024.**2) # e.g. 3.74
|
||||
return mem_gib
|
||||
return int(mem_gib)
|
||||
|
||||
def get_vcpus(self):
|
||||
return os.cpu_count()
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue