Files
librenms-librenms/includes/html/graphs/device/processor.inc.php
Tony Murray 539ef9ff90 Fix graph errors wrong content type (#14574)
Some code was returning too soon and messing up the return type
Other code was simply not setting it
2022-11-03 15:07:17 -05:00

14 lines
423 B
PHP

<?php
$procs = dbFetchRows('SELECT * FROM `processors` where `device_id` = ?', [$device['device_id']]);
if (empty($procs)) {
throw new \LibreNMS\Exceptions\RrdGraphException('No Processors');
}
if (\LibreNMS\Config::getOsSetting($device['os'], 'processor_stacked')) {
include 'includes/html/graphs/device/processor_stack.inc.php';
} else {
include 'includes/html/graphs/device/processor_separate.inc.php';
}