From 56daaff0843c6fb01c4594ba15387e328a9a4051 Mon Sep 17 00:00:00 2001 From: MaxLastBreath Date: Mon, 2 Dec 2024 19:20:16 +0200 Subject: [PATCH] Fix Ram Rounding --- src/configuration/settings.py | 2 +- src/modules/logger.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/configuration/settings.py b/src/configuration/settings.py index a9e7f8b..33cde34 100644 --- a/src/configuration/settings.py +++ b/src/configuration/settings.py @@ -7,7 +7,7 @@ from tkinter import messagebox import configparser -Version = "manager-2.1.1" +Version = "manager-2.1.2" repo_url_raw = 'https://github.com/MaxLastBreath/TOTK-mods' repo_url = 'https://api.github.com/repos/MaxLastBreath/TOTK-mods' localconfig = "TOTKOptimizer.ini" diff --git a/src/modules/logger.py b/src/modules/logger.py index 7c2e5fa..252ecc5 100644 --- a/src/modules/logger.py +++ b/src/modules/logger.py @@ -4,6 +4,7 @@ import psutil import GPUtil import os +import math from modules.scaling import * from modules.macos import macos_path import subprocess @@ -35,7 +36,7 @@ def start_logger(): # Print Memory try: memory_info = psutil.virtual_memory() - total_memory = memory_info.total/1024/1024 + total_memory = round(memory_info.total / (1024 * 1024 * 1024)) memory_used = memory_info.percent except Exception as e: log.warning(f"The System Memory was not detected, nothing to be concerned about. {e}")