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 /src/couchdb/couch_db.hrl | |
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 'src/couchdb/couch_db.hrl')
-rw-r--r-- | src/couchdb/couch_db.hrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.hrl b/src/couchdb/couch_db.hrl index 053cbaa4..bd297b2a 100644 --- a/src/couchdb/couch_db.hrl +++ b/src/couchdb/couch_db.hrl @@ -20,6 +20,7 @@ -define(JSON_ENCODE(V), mochijson2:encode(V)). -define(JSON_DECODE(V), mochijson2:decode(V)). +-define(b2a(V), list_to_atom(binary_to_list(V))). -define(b2l(V), binary_to_list(V)). -define(l2b(V), list_to_binary(V)). |