Repository: couchdb-chttpd Updated Branches: refs/heads/master ab80f3131 -> 4c521b169
Tolerate empty candidate list Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/4c521b16 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/4c521b16 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/4c521b16 Branch: refs/heads/master Commit: 4c521b1694500715aa3cc476b8c0fb003a00cf09 Parents: ab80f31 Author: Robert Newson <[email protected]> Authored: Fri Oct 3 15:23:54 2014 +0100 Committer: Robert Newson <[email protected]> Committed: Tue Apr 21 19:04:31 2015 +0100 ---------------------------------------------------------------------- src/chttpd_misc.erl | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/4c521b16/src/chttpd_misc.erl ---------------------------------------------------------------------- diff --git a/src/chttpd_misc.erl b/src/chttpd_misc.erl index ca89270..f1a45d3 100644 --- a/src/chttpd_misc.erl +++ b/src/chttpd_misc.erl @@ -283,6 +283,11 @@ db_pid_stats(Mod, Candidates) -> end end, [], Candidates ), + format_pid_stats(Mailboxes). + +format_pid_stats([]) -> + []; +format_pid_stats(Mailboxes) -> Sorted = lists:sort(Mailboxes), Count = length(Sorted), [
