Merge pull request #76 from hamano/fix_mod_admin_extra

fix connected_users_info in mod_admin_extra
This commit is contained in:
Mickaël Rémond 2015-02-25 07:38:35 +01:00
commit ba2790eca8
1 changed files with 5 additions and 1 deletions

View File

@ -860,7 +860,11 @@ connected_users_info() ->
NodeS = atom_to_list(node(Pid)),
Uptime = CurrentSec - calendar:datetime_to_gregorian_seconds(
calendar:now_to_local_time(Now)),
{[U, $@, S, $/, R], atom_to_list(Conn), IPS, Port, Priority, NodeS, Uptime}
PriorityI = case Priority of
PI when is_integer(PI) -> PI;
_ -> nil
end,
{[U, $@, S, $/, R], atom_to_list(Conn), IPS, Port, PriorityI, NodeS, Uptime}
end,
USRIs).