Skip to content

Commit

Permalink
chom
Browse files Browse the repository at this point in the history
  • Loading branch information
Qelxiros committed Sep 10, 2024
1 parent e7dfcda commit 2c27e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxstar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c27e4e

Please sign in to comment.