ROS-PSE / arni

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

gui: float division by zero #7

Closed gmwe closed 10 years ago

gmwe commented 10 years ago

@matt3o @Grommetox found while randomly clicking in arni-detail.

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/timer.py", line 194, in run
    self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
  File "/home/virtubuntu/catkin_ws/src/arni/arni_gui/src/arni_gui/topic_item.py", line 214, in __aggregate_topic_data
    self.__calculated_data["frequency"][-1] += entries["delivered_msgs"][i] / window_len.to_sec()
ZeroDivisionError: float division by zero
matt3o commented 10 years ago

Hopefully fixed with commit ad9ad8e