diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-09-17 04:04:46 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-09-17 04:04:46 +0000 |
commit | 4ddb75549c6565b5a2ca9edec0d965bdf53eed11 (patch) | |
tree | 3e4b30f1429857f08a399e14f0cd1848e2d1cd4e /share/www/script/couch.js | |
parent | da4f4a1b69f40c8847131f6103d8faca2ef4602c (diff) |
Fixes COUCHDB-396
Makes the stats calculated over a moving window isntead of calculated for non-overlapping timeframes. This should make trend monitoring more robust.
Thanks once again to Bob Dionne for double checking this.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@816043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 1c529183..f6c1199a 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -426,7 +426,8 @@ CouchDB.requestStats = function(module, key, test) { query_arg = "?flush=true"; } - var stat = CouchDB.request("GET", "/_stats/" + module + "/" + key + query_arg).responseText; + var url = "/_stats/" + module + "/" + key + query_arg; + var stat = CouchDB.request("GET", url).responseText; return JSON.parse(stat)[module][key]; } |