From b417276bd1480d5655de7d5e164f135ef38d1431 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Sat, 26 Jul 2025 03:01:17 -0400 Subject: [PATCH] Fix reported memory usage - Fixes #148 --- robotpy_installer/installer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/robotpy_installer/installer.py b/robotpy_installer/installer.py index e324f40..bbdde70 100755 --- a/robotpy_installer/installer.py +++ b/robotpy_installer/installer.py @@ -279,13 +279,13 @@ def show_mem_usage(self): break used_kb = total_kb - available_kb - pct_free = (available_kb / float(total_kb)) * 100.0 + pct_used = (used_kb / float(total_kb)) * 100.0 logger.info( - "-> RoboRIO memory %.1fM/%.1fM (%.0f%% full)", + "-> RoboRIO memory %.1fM/%.1fM (%.0f%% used)", used_kb / 1000.0, total_kb / 1000.0, - pct_free, + pct_used, ) def ensure_more_memory(self):