Skip to content

Commit

Permalink
[jsk_hrp2_ros_bridge/sensors_monitor.py] Add unit
Browse files Browse the repository at this point in the history
  • Loading branch information
iory authored and HRP2 committed Jul 4, 2018
1 parent 3bc8187 commit 65a710c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsk_hrp2_ros_bridge/scripts/sensors_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 65a710c

Please sign in to comment.