Skip to content

Commit

Permalink
Merge pull request start-jsk#510 from iory/sensors-monitor
Browse files Browse the repository at this point in the history
[jsk_hrp2_ros_bridge/sensors_monitor.py] Add unit
  • Loading branch information
mmurooka authored Jul 5, 2018
2 parents 3bc8187 + 65a710c commit 0db50fc
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 0db50fc

Please sign in to comment.