1<?php
2
3require 'includes/html/graphs/common.inc.php';
4$scale_min = 0;
5$nototal = 1;
6$unit_text = 'Connections';
7$unitlen = 15;
8$bigdescrlen = 20;
9$smalldescrlen = 15;
10$colours = 'mixed';
11
12$array = [
13    'download' => 'Download',
14    'upload'   => 'Upload',
15    'idle'     => 'Idle',
16];
17
18$rrd_filename = Rrd::name($device['hostname'], ['app', 'pureftpd', $app['app_id'], 'connections']);
19
20$rrd_list = [];
21if (Rrd::checkRrdExists($rrd_filename)) {
22    $i = 0;
23    foreach ($array as $ds => $descr) {
24        $rrd_list[$i]['filename'] = $rrd_filename;
25        $rrd_list[$i]['descr'] = $descr;
26        $rrd_list[$i]['ds'] = $ds;
27        $i++;
28    }
29} else {
30    echo "file missing: $rrd_filename";
31}
32
33require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';
34