ROS-PSE / arni

this is the codebase of the Advanced ROS Network Introspection.
BSD 2-Clause "Simplified" License
17 stars 9 forks source link

arni_nodeinterface: float division by zero #6

Closed gmwe closed 9 years ago

gmwe commented 10 years ago

found while clicking randomly in arni-detail.

[ERROR] [WallTime: 1411308162.965552] bad callback: <bound method NodeStatisticsHandler.receive_statistics of <arni_nodeinterface.node_statistics_handler.NodeStatisticsHandler object at 0x7f68d8bb35d0>>
Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/topics.py", line 688, in _invoke_callback
    cb(msg)
  File "/home/virtubuntu/catkin_ws/src/arni/arni_nodeinterface/src/arni_nodeinterface/node_statistics_handler.py", line 113, in receive_statistics
    self._status.add_node_bandwidth(stats.traffic / dur.to_sec())
ZeroDivisionError: float division by zero