fix connected_users_info in mod_admin_extra

This commit is contained in:
HAMANO Tsukasa 2015-02-25 13:16:38 +09:00
parent d1fe26dd17
commit 44aacf2ee4
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).