get_statistics_subset should return well-formatted null results

The existing code for handling lists of values that don't meet minimum
length causes problems when the `percentiles` key is used; e.g., rather
than the expected

    [{percentile, [{0.5, 0.0}, ... ]}]

the user is presented with

    [{{percentile, [0.5, ... ]}, 0.0}]

which doesn't match the formatting for other subset key. This patch
special-cases the `percentile` key to return the expected result.
1 file changed
tree: 3919f25f7a20c7e3bb7ab5b3215b8827bd45d5f4
  3. rebar
  4. rebar.config
  5. src/
  6. test/

bear : a set of statistics functions for erlang

Currently bear is focused on use inside the Folsom Erlang metrics library but all of these functions are generic and useful in other situations.

Pull requests accepted!

Available under the Apache 2.0 License