From 2c27e4e38a765ea4dcf464935d0703032e9a4de5 Mon Sep 17 00:00:00 2001 From: Jeremy Smart Date: Tue, 10 Sep 2024 16:40:00 -0400 Subject: [PATCH] chom --- proxstar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxstar/__init__.py b/proxstar/__init__.py index f5a03b5..8f2795a 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -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)