From 19c5ff8521d11929c200867dc15c99662c79aabf Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 6 Jun 2018 14:59:44 +0700 Subject: [PATCH] Show correct free disk space value. --- gns3server/compute/project_manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/compute/project_manager.py b/gns3server/compute/project_manager.py index 9abda38a..6af4a64a 100644 --- a/gns3server/compute/project_manager.py +++ b/gns3server/compute/project_manager.py @@ -90,9 +90,9 @@ class ProjectManager: return # send a warning if used disk space is >= 90% if used_disk_space >= 90: - message = 'Only {}% or less of disk space detected in "{}" on "{}"'.format(used_disk_space, - project.path, - platform.node()) + message = 'Only {}% or less of free disk space detected in "{}" on "{}"'.format(100 - used_disk_space, + project.path, + platform.node()) log.warning(message) project.emit("log.warning", {"message": message})