$time) { $modules[$mod]['time'] += $time; $modules[$mod]['count']++; $module_total_time += $time; } } $modules = array_sort_by($modules, 'time', SORT_DESC, SORT_NUMERIC); foreach ($modules as $mod => $mod_data) { $groups[$mod]['descr'] = $mod; foreach ($devices as $device_id => $device) { $rrd_filename = get_rrd_path($device, 'perf-pollermodule-' . $mod . '.rrd'); if (rrd_is_file($rrd_filename, TRUE)) { $groups[$mod]['list'][] = [ 'filename' => $rrd_filename, 'descr' => str_pad($device['hostname'], 25) . " (" . $device['os'] . ")", 'ds' => "val" ]; } } } $units = 'Seconds'; $total_units = 'Sec'; $colours = 'mixed'; $nototal = 1; include($config['html_dir'] . "/includes/graphs/generic_multi_group_simplex_separated.inc.php"); // EOF