From 44aacf2ee47cb404e655b96060f4388d6e464949 Mon Sep 17 00:00:00 2001 From: HAMANO Tsukasa Date: Wed, 25 Feb 2015 13:16:38 +0900 Subject: [PATCH] fix connected_users_info in mod_admin_extra --- mod_admin_extra/src/mod_admin_extra.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod_admin_extra/src/mod_admin_extra.erl b/mod_admin_extra/src/mod_admin_extra.erl index a0006dd..13b3370 100644 --- a/mod_admin_extra/src/mod_admin_extra.erl +++ b/mod_admin_extra/src/mod_admin_extra.erl @@ -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).