diff options
author | HAMANO Tsukasa <code@cuspy.org> | 2015-02-25 13:16:38 +0900 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2015-03-26 14:00:44 +0100 |
commit | 00fe68ed06044e901826819cd903dda145088a4d (patch) | |
tree | 1b0c9f34857f4d8a3e897bb88ed8d9d22c952b96 | |
parent | mod_admin_extra: Fix private_get/private_set types (diff) |
fix connected_users_info in mod_admin_extra
-rw-r--r-- | src/mod_admin_extra.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index a0006dd9e..13b337030 100644 --- a/src/mod_admin_extra.erl +++ b/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). |