Closed Bug 387395 Opened 17 years ago Closed 17 years ago

talos computes Median value incorrectly

Categories

(Release Engineering :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ginnchen+exoracle, Assigned: ginnchen+exoracle)

Details

Attachments

(1 file)

In framecycler.html, Median value is computed incorrectly.

It has 2 problems.
1) sorted_ary.sort is not sorted without compare function, so it's sorted lexicographically.

2) sorted_ary is zero based. so we should use (a[n-1] + a[n]) /2 for median value, if length is even. (n = length / 2.)

Also Median is not in tables heads of report.html
I pressed submit too fast.
I mean table headers in report.html.
Attached patch patchSplinter Review
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #271504 - Flags: review?(rhelmer)
Comment on attachment 271504 [details] [diff] [review]
patch

Sorry for the delay; alice would be a better reviewer than me for this.
Attachment #271504 - Flags: review?(rhelmer) → review?(anodelman)
Comment on attachment 271504 [details] [diff] [review]
patch

The math in this patch looks good to me.
Attachment #271504 - Flags: review?(anodelman) → review+
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Ginn checked this in on 2007-07-18 23:33, FWIW.
Component: Testing → Release Engineering: Talos
Product: Core → mozilla.org
QA Contact: testing → release
Version: Trunk → other
Component: Release Engineering: Talos → Release Engineering
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: