From 02e1de0be2c6fae18775fd0f0df9ac31c7fbae2d Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 9 Mar 2025 19:10:28 -0400 Subject: [PATCH] unit conversion --- hwmonDaemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hwmonDaemon.py b/hwmonDaemon.py index 69e0a0b..2bf075a 100644 --- a/hwmonDaemon.py +++ b/hwmonDaemon.py @@ -1378,7 +1378,8 @@ class SystemHealthMonitor: # Get usage percentage directly from parts[4] usage_percent = float(parts[4].rstrip('%')) - + size_value = self._convert_size_to_bytes(parts[1]) # For total size + used_value = self._convert_size_to_bytes(parts[2]) # For used size filesystem = { 'mountpoint': mountpoint, 'total': parts[1],