diff --git a/html/includes/graphs/application/ats-watts_Watts.inc.php b/html/includes/graphs/application/ats-watts_Watts.inc.php new file mode 100644 index 0000000..e9b5fc4 --- /dev/null +++ b/html/includes/graphs/application/ats-watts_Watts.inc.php @@ -0,0 +1,35 @@ + array('descr' => 'Watts','colour' => '2B9220',), +); + +$i = 0; +if (rrdtool_check_rrd_exists($rrd_filename)) { + foreach ($array as $ds => $var) { + $rrd_list[$i]['filename'] = $rrd_filename; + $rrd_list[$i]['descr'] = $var['descr']; + $rrd_list[$i]['ds'] = $ds; + $rrd_list[$i]['colour'] = $var['colour']; + $i++; + } +} else { + echo "file missing: $rrd_filename"; +} + +require 'includes/graphs/generic_v3_multiline.inc.php';