Files

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

14 lines
423 B
PHP
Raw Permalink Normal View History

2011-04-26 16:05:56 +00:00
<?php
2011-04-22 15:13:15 +00:00
$procs = dbFetchRows('SELECT * FROM `processors` where `device_id` = ?', [$device['device_id']]);
2011-04-22 15:13:15 +00:00
if (empty($procs)) {
throw new \LibreNMS\Exceptions\RrdGraphException('No Processors');
}
if (\LibreNMS\Config::getOsSetting($device['os'], 'processor_stacked')) {
2019-04-11 23:26:42 -05:00
include 'includes/html/graphs/device/processor_stack.inc.php';
2016-08-18 20:28:22 -05:00
} else {
2019-04-11 23:26:42 -05:00
include 'includes/html/graphs/device/processor_separate.inc.php';
2011-04-22 15:13:15 +00:00
}