Skip to content

Commit

Permalink
Fix no getloadavg in psutil from apt (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb authored Jun 29, 2023
1 parent 5e8bca9 commit 139545d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panther_manager/src/system_status_node.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python3

import os
import psutil

import rospy
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 139545d

Please sign in to comment.