From f8df7b0a60db99d3fe0690c8776d1af60e7e1d3d Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 21 May 2021 11:04:11 +0200 Subject: [PATCH] On Clients tables, hide rows with zero clients --- mod_statsdx/src/mod_statsdx.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod_statsdx/src/mod_statsdx.erl b/mod_statsdx/src/mod_statsdx.erl index 3722ef9..124fd01 100644 --- a/mod_statsdx/src/mod_statsdx.erl +++ b/mod_statsdx/src/mod_statsdx.erl @@ -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))