On Clients tables, hide rows with zero clients

This commit is contained in:
Badlop 2021-05-21 11:04:11 +02:00
parent bf08312336
commit f8df7b0a60
1 changed files with 3 additions and 1 deletions

View File

@ -1543,7 +1543,9 @@ make_url(StatLink, L) ->
do_stat_table(global, Lang, Stat, Host) ->
Os = mod_statsdx:get_statistic(global, [Stat, Host]),
lists:map(
fun({L, N}) ->
fun({_L, 0}) when Stat == "client" ->
?C(<<"">>);
({L, N}) ->
do_table_element(Lang, L, Stat, io_lib:format("~p", [N]))
end,
lists:reverse(lists:keysort(2, Os))