This commit is contained in:
Jeremy Smart 2024-09-10 16:40:00 -04:00
parent e7dfcdad95
commit 2c27e4e38a
No known key found for this signature in database
GPG key ID: 779983F4BEF2BACB

View file

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