Skip to content

Commit

Permalink
Value is returned along with unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancribbs committed Feb 18, 2014
1 parent d695207 commit 0435a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riak_core_format.erl
Expand Up @@ -69,7 +69,7 @@ epoch_to_datetime(S) ->
%% @doc Formats a byte size into a human-readable size with units.
%% Thanks StackOverflow:
%% http://stackoverflow.com/questions/2163691/simpler-way-to-format-bytesize-in-a-human-readable-way
-spec human_size(non_neg_integer(), list()) -> iolist().
-spec human_size(number(), list()) -> {float(), iolist()}.
human_size(S, [_|[_|_] = L]) when S >= 1024 -> human_size(S/1024, L);
human_size(S, [M|_]) ->
{float(S), M}.
Expand Down

0 comments on commit 0435a9c

Please sign in to comment.