From 6b6dfab52bfb9933e19065753e126f91da74c55b Mon Sep 17 00:00:00 2001 From: bergware Date: Fri, 15 Dec 2023 10:28:52 +0100 Subject: [PATCH] Dashboard: skip empty entries in graph --- emhttp/plugins/dynamix/nchan/update_1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/nchan/update_1 b/emhttp/plugins/dynamix/nchan/update_1 index 9a117a234..63f3ee99f 100755 --- a/emhttp/plugins/dynamix/nchan/update_1 +++ b/emhttp/plugins/dynamix/nchan/update_1 @@ -66,7 +66,7 @@ while (true) { $data = @intval(exec(escapeshellarg($hook))); if (!$data) continue; $names[] = _(basename($hook)); // name of element (with translation) - $bytes[] = $data; // value in bytes of element (error -> 0) + $bytes[] = $data; // value in bytes of element } $services = $used-array_sum($bytes); $meminfo[] = round(100*$used/$total)."%";