couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [05/30] bear commit: updated refs/heads/import-master to 5f99806
Date Thu, 31 Jul 2014 21:09:56 GMT
Add "n" value to stats proplist to determine number of observations


Project: http://git-wip-us.apache.org/repos/asf/couchdb-bear/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-bear/commit/7cb6a632
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-bear/tree/7cb6a632
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-bear/diff/7cb6a632

Branch: refs/heads/import-master
Commit: 7cb6a632a2d1f01fd05c55f692dcd338bf8c89d2
Parents: 7ef9a7b
Author: Dave Smith <dizzyd@dizzyd.com>
Authored: Fri Aug 24 09:23:40 2012 -0600
Committer: Dave Smith <dizzyd@dizzyd.com>
Committed: Fri Aug 24 09:23:40 2012 -0600

----------------------------------------------------------------------
 src/bear.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-bear/blob/7cb6a632/src/bear.erl
----------------------------------------------------------------------
diff --git a/src/bear.erl b/src/bear.erl
index 0afbe61..33138ee 100644
--- a/src/bear.erl
+++ b/src/bear.erl
@@ -61,7 +61,8 @@ get_statistics(Values) when length(Values) < ?STATS_MIN ->
        {999, 0.0}
       ]
      },
-     {histogram, [{0, 0}]}
+     {histogram, [{0, 0}]},
+     {n, 0}
      ];
 get_statistics(Values) ->
     Scan_res = scan_values(Values),
@@ -87,7 +88,8 @@ get_statistics(Values) ->
        {999, percentile(SortedValues, Scan_res, 0.999)}
       ]
      },
-     {histogram, get_histogram(Values, Scan_res, Scan_res2)}
+     {histogram, get_histogram(Values, Scan_res, Scan_res2)},
+     {n, Scan_res#scan_result.n}
      ].
 
 get_statistics(Values, _) when length(Values) < ?STATS_MIN ->


Mime
View raw message