diff options
author | Anders Svensson <[email protected]> | 2013-03-19 13:35:54 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-03-19 13:35:54 +0100 |
commit | f285ee66678ae8761dc82b5ba0c023dd759091fc (patch) | |
tree | 8f191915385a3ff600b6b130dd38bcb164bbfad6 /lib/diameter/src/base/diameter_service.erl | |
parent | 692fa53631d5c977cc5e7635ce1df4e39d224116 (diff) | |
parent | e173bc1b28453f0edb4863677f3c730b3d7a9f91 (diff) | |
download | otp-f285ee66678ae8761dc82b5ba0c023dd759091fc.tar.gz otp-f285ee66678ae8761dc82b5ba0c023dd759091fc.tar.bz2 otp-f285ee66678ae8761dc82b5ba0c023dd759091fc.zip |
Merge branch 'maint-r16' into maint
Diffstat (limited to 'lib/diameter/src/base/diameter_service.erl')
-rw-r--r-- | lib/diameter/src/base/diameter_service.erl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl index 255a3a44fd..e4d1c60727 100644 --- a/lib/diameter/src/base/diameter_service.erl +++ b/lib/diameter/src/base/diameter_service.erl @@ -1654,16 +1654,10 @@ info_stats(#state{watchdogT = WatchdogT}) -> info_transport(S) -> PeerD = peer_dict(S, config_dict(S)), - RefsD = dict:map(fun(_, Ls) -> [P || L <- Ls, {peer, {P,_}} <- L] end, - PeerD), - Refs = lists:append(dict:fold(fun(R, Ps, A) -> [[R|Ps] | A] end, - [], - RefsD)), - Stats = diameter_stats:read(Refs), + Stats = diameter_stats:sum(dict:fetch_keys(PeerD)), dict:fold(fun(R, Ls, A) -> - Ps = dict:fetch(R, RefsD), - [[{ref, R} | transport(Ls)] ++ [stats([R|Ps], Stats)] - | A] + Cs = proplists:get_value(R, Stats, []), + [[{ref, R} | transport(Ls)] ++ [{statistics, Cs}] | A] end, [], PeerD). |