From f9de8c8df65e6e2295a413b63e351b4a638a098d Mon Sep 17 00:00:00 2001 From: Krzysztof Wojciechowski <49921081+Kotochleb@users.noreply.github.com> Date: Wed, 28 Jun 2023 17:56:39 +0200 Subject: [PATCH] Fix no getloadavg in psutil from apt --- panther_manager/src/system_status_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panther_manager/src/system_status_node.py b/panther_manager/src/system_status_node.py index 3508ad11d..892f25bb2 100755 --- a/panther_manager/src/system_status_node.py +++ b/panther_manager/src/system_status_node.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 +import os import psutil import rospy @@ -60,7 +61,7 @@ def _cpu_temp(self) -> float: @property def _avg_load_percent(self) -> float: - return psutil.getloadavg()[2] / 100.0 + return os.getloadavg()[2] @property def _ram_usage_percent(self) -> float: