osrf / cloudsim-legacy

Apache License 2.0
1 stars 1 forks source link

Monitoring thread can divide by zero when given 0 up/down caps #120

Closed osrf-migration closed 11 years ago

osrf-migration commented 11 years ago

Original report (archived issue) by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


From a cloudsimd log for a task with 0 for either the uplink or downlink caps:

monitoring log> score monitoring error float division by zero
monitoring log> traceback:  Traceback (most recent call last):
  File "/var/cloudsimd/launchers/launch_utils/monitoring.py", line 330, in monitor_task
    up = 100.0 * up_bits / up_cap
ZeroDivisionError: float division by zero
osrf-migration commented 11 years ago

Original comment by Brian Gerkey (Bitbucket: Brian Gerkey, GitHub: gerkey).


pull request #72