Skip to content

Commit

Permalink
Fix one-off error in stats
Browse files Browse the repository at this point in the history
Update release notes for next release
  • Loading branch information
jonjlee committed Jan 12, 2011
1 parent 425aba6 commit b05286b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## v0.2.1 (In Progress) ##

Features:

* Add /console/console.html, a jQuery based UI for connecting to multiple nodeload instances simultaneously

Bug Fixes:

* config: Add 'nodeload/config' module for configuring global parameters
* multiloop: polling time for next change in load or user profiles was always 1 second
* stats: Fix one-off error in Histogram.percentile wouldn't return the greatest number if it is greater than the number of buckets (i.e. in extra[])

## v0.2.0 (2010/12/01) ##

This release is a substantial, non-backwards-compatible rewrite of nodeload. The major features are:
Expand Down
2 changes: 1 addition & 1 deletion lib/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Histogram.prototype = {
var target = Math.floor(this.length * (1 - percentile));

if (this.extra.length > target) {
var idx = this.extra.length - target;
var idx = this.extra.length - target - 1;
if (!this.sorted) {
this.extra = this.extra.sort(function(a, b) { return a - b; });
this.sorted = true;
Expand Down

0 comments on commit b05286b

Please sign in to comment.