mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-02-12 13:01:51 +00:00
chom
This commit is contained in:
parent
e7dfcdad95
commit
2c27e4e38a
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@ def vm_mem(vmid, mem):
|
|||
connect_proxmox()
|
||||
if user.rtp or int(vmid) in user.allowed_vms:
|
||||
vm = VM(vmid)
|
||||
cur_mem = vm.mem // 1024
|
||||
cur_mem = int(vm.mem) // 1024
|
||||
if mem >= cur_mem:
|
||||
if vm.qmpstatus in ('running', 'paused'):
|
||||
usage_check = user.check_usage(0, mem - cur_mem, 0)
|
||||
|
|
Loading…
Reference in a new issue