We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7dfcda commit 2c27e4eCopy full SHA for 2c27e4e
proxstar/__init__.py
@@ -379,7 +379,7 @@ def vm_mem(vmid, mem):
379
connect_proxmox()
380
if user.rtp or int(vmid) in user.allowed_vms:
381
vm = VM(vmid)
382
- cur_mem = vm.mem // 1024
+ cur_mem = int(vm.mem) // 1024
383
if mem >= cur_mem:
384
if vm.qmpstatus in ('running', 'paused'):
385
usage_check = user.check_usage(0, mem - cur_mem, 0)
0 commit comments