From 65a710caa8393f950178d605a8c337c53fc4c7c7 Mon Sep 17 00:00:00 2001 From: iory Date: Thu, 5 Jul 2018 03:44:45 +0900 Subject: [PATCH] [jsk_hrp2_ros_bridge/sensors_monitor.py] Add unit --- jsk_hrp2_ros_bridge/scripts/sensors_monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsk_hrp2_ros_bridge/scripts/sensors_monitor.py b/jsk_hrp2_ros_bridge/scripts/sensors_monitor.py index fee83e98..5f28b8af 100755 --- a/jsk_hrp2_ros_bridge/scripts/sensors_monitor.py +++ b/jsk_hrp2_ros_bridge/scripts/sensors_monitor.py @@ -53,13 +53,13 @@ def monitor(self, stat): stat.mergeSummary(DIAG.ERROR, "Critical Temperature") elif entry.high is not None and entry.current > entry.high: stat.mergeSummary(DIAG.WARN, "High Temperature") - stat.add(" ".join([name, entry.label]), entry.current) + stat.add(" ".join([name, entry.label, "[degree]"]), entry.current) # Fans. if name in fans: for entry in fans[name]: if entry.current < self.rpm_threshold: stat.mergeSummary(DIAG.WARN, "Fan slowing down") - stat.add(" ".join(['Fan', name, entry.label]), + stat.add(" ".join(['Fan', name, entry.label, "[RPM]"]), entry.current) return stat