diff options
author | Jan Lehnardt <jan@apache.org> | 2009-02-25 16:39:55 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-02-25 16:39:55 +0000 |
commit | 8a5b0c697a6fdb3169afe82391368c26bec86978 (patch) | |
tree | 00b4b6a482fb8e6af481c8f5a52fb24655554ef7 /src/couchdb/couch_stats_aggregator.erl | |
parent | 0fb2f9696d8005eb46d5efeac1ae217fe0fb6a04 (diff) |
add js test suite for stats, enable access for a previously internal metric
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747852 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_stats_aggregator.erl')
-rw-r--r-- | src/couchdb/couch_stats_aggregator.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_stats_aggregator.erl b/src/couchdb/couch_stats_aggregator.erl index 97f6bc14..3d3db0ef 100644 --- a/src/couchdb/couch_stats_aggregator.erl +++ b/src/couchdb/couch_stats_aggregator.erl @@ -241,10 +241,10 @@ update_aggregates(Value, Stat, CounterType) -> end. -aggregate_to_json_term(#aggregates{min=Min,max=Max,mean=Mean,stddev=Stddev,count=Count}) -> +aggregate_to_json_term(#aggregates{min=Min,max=Max,mean=Mean,stddev=Stddev,count=Count,last=Last}) -> {[ % current is redundant, but reads nicer in JSON - {current, Count}, + {current, Last}, {count, Count}, {mean, Mean}, {min, Min}, |