You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/09/03 22:52:18 UTC
couchdb commit: updated refs/heads/master to 9be7eb9
Repository: couchdb
Updated Branches:
refs/heads/master ae73f4641 -> 9be7eb980
improve stats.js test
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/9be7eb98
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9be7eb98
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9be7eb98
Branch: refs/heads/master
Commit: 9be7eb980ad05d5adf86f23ff6687b3ec688df25
Parents: ae73f46
Author: Robert Newson <rn...@apache.org>
Authored: Wed Sep 3 21:52:08 2014 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Sep 3 21:52:08 2014 +0100
----------------------------------------------------------------------
share/www/script/test/stats.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/9be7eb98/share/www/script/test/stats.js
----------------------------------------------------------------------
diff --git a/share/www/script/test/stats.js b/share/www/script/test/stats.js
index cfe232f..87440b3 100644
--- a/share/www/script/test/stats.js
+++ b/share/www/script/test/stats.js
@@ -327,9 +327,11 @@ couchTests.stats = function(debug) {
var test_metrics = function(metrics) {
if (metrics.type === "counter") {
test_counter(metrics);
+ } else if (metrics.type === "gauge") {
+ test_counter(metrics);
} else if (metrics.type === "histogram") {
test_histogram(metrics);
- } else {
+ } else if (metrics.type === undefined) {
for (var k in metrics) {
test_metrics(metrics[k]);
}