Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
666 B
PHP
Raw Permalink Normal View History

2009-10-27 13:04:16 +00:00
<?php
2011-03-16 21:59:11 +00:00
$i = 0;
foreach ($procs as $proc) {
2021-03-28 17:25:30 -05:00
$rrd_filename = Rrd::name($device['hostname'], ['processor', $proc['processor_type'], $proc['processor_index']]);
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
$descr = short_hrDeviceDescr($proc['processor_descr']);
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;
$rrd_list[$i]['ds'] = 'usage';
$i++;
}
}
$unit_text = 'Load %';
$units = '%';
2011-03-17 13:35:25 +00:00
$total_units = '%';
$colours = 'oranges';
$scale_min = '0';
$scale_max = '100';
$divider = $i;
$text_orig = 1;
$nototal = 1;
2009-10-27 13:04:16 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';