");
$i = '1';
foreach (dbFetchRows("SELECT * FROM `processors` WHERE device_id = ?", array($device['device_id'])) as $proc)
{
$proc_url = "device/device=".$device['device_id']."/tab=health/metric=processor/";
$mini_url = "graph.php?id=".$proc['processor_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
$text_descr = $proc['processor_descr'];
$text_descr = rewrite_entity_descr($text_descr);
$proc_popup = "onmouseover=\"return overlib('".$device['hostname']." - ".$text_descr;
$proc_popup .= "
";
$proc_popup .= "', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\"";
$percent = round($proc['processor_usage']);
$background = get_percentage_colours($percent);
echo("
" . $text_descr . " |
![]($mini_url) |
".print_percentage_bar (400, 20, $percent, $percent."%", "ffffff", $background['left'], (100 - $percent)."%" , "ffffff", $background['right'])."
|
");
echo("");
$graph_array['id'] = $proc['processor_id'];
$graph_array['type'] = $graph_type;
include("includes/print-quadgraphs.inc.php");
}
echo(" |
");
echo("");
?>