Files
librenms-librenms/includes/html/graphs/application/nvidia-common.inc.php
Tony Murray 1c379dcd05 Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00

32 lines
742 B
PHP

<?php
$name = 'nvidia';
$app_id = $app['app_id'];
$colours = 'greens';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$app_id = $app['app_id'];
$int = 0;
$rrd_list = [];
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $int]);
if (! Rrd::checkRrdExists($rrd_filename)) {
echo "file missing: $rrd_filename";
}
while (Rrd::checkRrdExists($rrd_filename)) {
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => 'GPU ' . $int,
'ds' => $rrdVar,
];
$int++;
$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $int]);
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';