From 05c6af708f27428b94dedee55dde86f4ae8dad27 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Mon, 15 Jan 2018 14:22:55 +0100 Subject: [PATCH] statistics.html: Replace clients per GW column by unknown routers The clients per GW cannot by determined reliably in the Monitoring. Thus, we remove the column and readd the previously removed "unknown" column. Signed-off-by: Adrian Schmutzler --- ffmap/web/templates/statistics.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmap/web/templates/statistics.html b/ffmap/web/templates/statistics.html index 8c5eed0..4f88f65 100644 --- a/ffmap/web/templates/statistics.html +++ b/ffmap/web/templates/statistics.html @@ -131,8 +131,8 @@ Gateway Online Offline + Unkn. Total - Clients Stats {%- for mac, value in gws.items() %} @@ -148,8 +148,8 @@ {{ value["selected"]["online"] or 0 }} / {{ value["others"]["online"] or 0 }} {{ value["selected"]["offline"] or 0 }} / {{ value["others"]["offline"] or 0 }} + {{ value["selected"]["unknown"] or 0 }} / {{ value["others"]["unknown"] or 0 }} {{ gws_sum[mac]["routers"] if gws_sum[mac] else 0 }} / {{ value["others"]|sumdict if value["others"] else 0 }} - {{ gws_sum[mac]["clients"] if gws_sum[mac] }} Stats {%- endfor %}