mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 10:10:05 -06:00
Dashboard: skip empty entries in graph
This commit is contained in:
@@ -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)."%";
|
||||
|
||||
Reference in New Issue
Block a user