Skip to content

Commit

Permalink
Remove rps line from result codes graph and limit rps precision to 1 …
Browse files Browse the repository at this point in the history
…decimal place.
  • Loading branch information
jonjlee committed Jun 30, 2011
1 parent f5fc13c commit 4df2ea2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
## v0.4.0 (2011/06/16) ##
## v0.4.0 (HEAD) ##

Compatible with node v0.4.x

Features:

* rps is now a separate stat from result codes

## v0.3.0 (2011/06/16) ##

Compatible with node v0.3.x
Expand Down
3 changes: 1 addition & 2 deletions lib/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ ResultsCounter.prototype = {
items[i] = this.items[i];
}
items.total = this.length;
items.rps = Number((this.length / ((new Date() - this.start) / 1000)).toFixed(1));
return items;
},
merge: function(other) {
Expand Down Expand Up @@ -293,7 +292,7 @@ Rate.prototype = {
this.length++;
},
get: function() {
return this.length / ((new Date() - this.start) / 1000);
return Number((this.length / ((new Date() - this.start) / 1000)).toFixed(1));
},
clear: function() {
this.start = new Date();
Expand Down
4 changes: 2 additions & 2 deletions nodeload.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4df2ea2

Please sign in to comment.