Skip to content

Commit

Permalink
fix failing memory API test (#15256)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Dec 21, 2024
1 parent 182c0bc commit 73406a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewared/middlewared/plugins/vm/vm_memory_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 73406a1

Please sign in to comment.