1<?php
2
3$name = 'nvidia';
4$app_id = $app['app_id'];
5$colours = 'greens';
6$dostack = 0;
7$printtotal = 0;
8$addarea = 1;
9$transparency = 15;
10$app_id = $app['app_id'];
11
12$int = 0;
13$rrd_list = [];
14$rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $int]);
15
16if (! Rrd::checkRrdExists($rrd_filename)) {
17    echo "file missing: $rrd_filename";
18}
19
20while (Rrd::checkRrdExists($rrd_filename)) {
21    $rrd_list[] = [
22        'filename' => $rrd_filename,
23        'descr'    => 'GPU ' . $int,
24        'ds'       => $rrdVar,
25    ];
26
27    $int++;
28    $rrd_filename = Rrd::name($device['hostname'], ['app', $app['app_type'], $app['app_id'], $int]);
29}
30
31require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
32