diff options
author | Jan Lehnardt <jan@apache.org> | 2009-02-27 18:07:37 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-02-27 18:07:37 +0000 |
commit | 1cb18dc3db07b5a8e795c96e9e566eb621becc89 (patch) | |
tree | 1002c4238b35f7bfbd07df7b656c1731cf1452c8 /src | |
parent | 894b8a95e88c786f2c03eb6db4d44b9212646113 (diff) |
- remove unused aggregate metrics field
- return an empty object when there are no stats
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748622 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_stats_aggregator.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/couchdb/couch_stats_aggregator.erl b/src/couchdb/couch_stats_aggregator.erl index 4cdcb4a2..83340c01 100644 --- a/src/couchdb/couch_stats_aggregator.erl +++ b/src/couchdb/couch_stats_aggregator.erl @@ -260,7 +260,6 @@ aggregate_to_json_term(#aggregates{min=Min,max=Max,mean=Mean,stddev=Stddev,count {min, Min}, {max, Max}, {stddev, Stddev}, - {resolution, 1}, {description, Description} ]}. @@ -271,7 +270,7 @@ get_stats(Key, State) -> % Thanks to Paul Davis do_get_all(#state{aggregates=Stats}=State) -> case Stats of - [] -> {[{ok, no_stats_yet}]}; + [] -> {[{}]}; _ -> [{LastMod, LastVals} | LastRestMods] = lists:foldl(fun({{Module, Key}, _Count}, AccIn) -> case AccIn of |