diff --git a/emhttp/plugins/dynamix/nchan/update_1 b/emhttp/plugins/dynamix/nchan/update_1 index 66f849b19..9a117a234 100755 --- a/emhttp/plugins/dynamix/nchan/update_1 +++ b/emhttp/plugins/dynamix/nchan/update_1 @@ -63,8 +63,10 @@ while (true) { $bytes = $meminfo = $sysinfo = []; $hooks = array_filter(glob("/usr/local/emhttp/plugins/*/system/*",GLOB_NOSORT),function($file){return is_executable($file);}); foreach ($hooks as $hook) { + $data = @intval(exec(escapeshellarg($hook))); + if (!$data) continue; $names[] = _(basename($hook)); // name of element (with translation) - $bytes[] = @intval(exec(escapeshellarg($hook))); // value in bytes of element (error -> 0) + $bytes[] = $data; // value in bytes of element (error -> 0) } $services = $used-array_sum($bytes); $meminfo[] = round(100*$used/$total)."%";