Files

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

30 lines
682 B
PHP
Raw Permalink Normal View History

<?php
$name = 'nvidia';
2019-04-09 15:47:43 +02:00
$colours = 'greens';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
2020-09-21 15:40:17 +02:00
$int = 0;
$rrd_list = [];
$rrd_filename = Rrd::name($device['hostname'], ['app', $app->app_type, $app->app_id, $int]);
2020-09-21 15:40:17 +02:00
2021-03-28 17:25:30 -05:00
if (! Rrd::checkRrdExists($rrd_filename)) {
echo "file missing: $rrd_filename";
}
2021-03-28 17:25:30 -05:00
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]);
}
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';