Files
librenms-librenms/includes/html/graphs/application/nvidia-common.inc.php
Jellyfrog 071ca9bc2a Apply fixes from StyleCI (#15698)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-01-04 22:39:12 -06:00

30 lines
673 B
PHP

<?php
$name = 'nvidia';
$colours = 'greens';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$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';