mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Merge branch 'master' into 3.0
# Conflicts: # .github/workflows/testing.yml # Dockerfile # gns3server/version.py
This commit is contained in:
commit
0b200def88
17 files changed
+60
-66
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user