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