ZeroDivisionError: float division by zero

Bug #1346240 reported by Chris Johnston on 2014-07-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu CI Dashboard
Medium
Joe Talbott

Bug Description

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/usr/lib/python2.7/dist-packages/django/views/decorators/http.py", line 41, in inner
    return func(request, *args, **kwargs)

  File "/srv/reports.qa.ubuntu.com/common/views.py", line 34, in index
    kpi_html = ext_man.kpi_render()

  File "/srv/reports.qa.ubuntu.com/common/plugin_helper.py", line 156, in kpi_render
    output = kpi_manager.render()

  File "/srv/reports.qa.ubuntu.com/common/plugin_helper.py", line 105, in render
    snippet += '{}\n'.format(k.render())

  File "/srv/reports.qa.ubuntu.com/bootspeed/dashboard.py", line 158, in render

  File "/srv/reports.qa.ubuntu.com/bootspeed/dashboard.py", line 133, in _aggregate_entries
    else:

ZeroDivisionError: float division by zero

Related branches

Chris Johnston (cjohnston) wrote :

15:08:04 ChrisS | cjohnston: I'm sure there's a more elegant way around it, but for now it's just: if old_average == 0: entries[entry]['change'] = 0 else: <original code>

Changed in qa-dashboard:
importance: Undecided → Critical
status: New → Confirmed
Evan (ev) on 2014-07-23
Changed in qa-dashboard:
importance: Critical → Medium
assignee: nobody → Joe Talbott (joetalbott)
Changed in qa-dashboard:
status: Confirmed → Fix Committed
Evan (ev) wrote :

This has landed.

Changed in qa-dashboard:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers