Merge branch 'master' into 3.0

# Conflicts:
#	.github/workflows/testing.yml
#	Dockerfile
#	gns3server/version.py
This commit is contained in:
grossmj
2021-10-09 12:16:50 +10:30
17 changed files with 60 additions and 66 deletions

View File

@ -974,7 +974,7 @@ class BaseNode:
"""
available_ram = int(psutil.virtual_memory().available / (1024 * 1024))
percentage_left = psutil.virtual_memory().percent
percentage_left = 100 - psutil.virtual_memory().percent
if requested_ram > available_ram:
message = '"{}" requires {}MB of RAM to run but there is only {}MB - {}% of RAM left on "{}"'.format(
self.name, requested_ram, available_ram, percentage_left, platform.node()