Closed Bug 714890 Opened 13 years ago Closed 13 years ago

WOO mailer busted by division by zero

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

Details

Attachments

(1 file)

There were 0 test runs recorded, due to a few bugs, for over a week.  This crashed the mailer when it tried to calculate the OF, dividing by zero.
This fixes the crash when we get a test-run count of 0.  I also noticed that
the OF was being compared as a string, not a float as it should be, so I
fixed that too.
Attachment #585506 - Flags: review?(jgriffin)
Comment on attachment 585506 [details] [diff] [review]
Fixed crash when missing test runs.

Looks good!
Attachment #585506 - Flags: review?(jgriffin) → review+
Pushed as http://hg.mozilla.org/automation/orangefactor/rev/18be3cb316e0. Will be deployed along with bug 707197.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Version: 12 Branch → unspecified
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: