Skip to content

Commit 2c27e4e

Browse files
committed
chom
1 parent e7dfcda commit 2c27e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxstar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def vm_mem(vmid, mem):
379379
connect_proxmox()
380380
if user.rtp or int(vmid) in user.allowed_vms:
381381
vm = VM(vmid)
382-
cur_mem = vm.mem // 1024
382+
cur_mem = int(vm.mem) // 1024
383383
if mem >= cur_mem:
384384
if vm.qmpstatus in ('running', 'paused'):
385385
usage_check = user.check_usage(0, mem - cur_mem, 0)

0 commit comments

Comments
 (0)