From 73406a1daee79ae7fe12b8f7dd818d354d48a82b Mon Sep 17 00:00:00 2001 From: "Caleb St. John" <30729806+yocalebo@users.noreply.github.com> Date: Sat, 21 Dec 2024 08:14:19 -0500 Subject: [PATCH] fix failing memory API test (#15256) --- src/middlewared/middlewared/plugins/vm/vm_memory_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/vm/vm_memory_info.py b/src/middlewared/middlewared/plugins/vm/vm_memory_info.py index a59d5e93f5fbc..b78743d00575e 100644 --- a/src/middlewared/middlewared/plugins/vm/vm_memory_info.py +++ b/src/middlewared/middlewared/plugins/vm/vm_memory_info.py @@ -53,7 +53,7 @@ async def get_available_memory(self, overcommit): available at the current moment and if a VM should be allowed to be launched. """ # Use 90% of available memory to play safe - free = get_memory_info()['available'] * 0.9 + free = int(get_memory_info()['available'] * 0.9) # Difference between current ARC total size and the minimum allowed arc_total = await self.middleware.call('sysctl.get_arcstats_size')