git-svn-id: http://www.observium.org/svn/observer/trunk@479 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-10-02 15:10:32 +00:00
parent 233cc0a773
commit f2426873d5

View File

@@ -0,0 +1,12 @@
<?php
global $config, $installdir;
$graphfile = $config['install_dir'] . "/graphs/" . $args['graphfile'];
$options .= " --alt-autoscale-max -E --start ".$args['from']." --end " . ($args['to'] - 150) . " --width ".$args['width']." --height ".$args['height']." ";
$options .= $config['rrdgraph_def_text'];
if($args['height'] < "99") { $options .= " --only-graph"; }
if($args['width'] <= "300") { $options .= " --font LEGEND:7:".$config['mono_font']." --font AXIS:6:".$config['mono_font']." --font-render-mode normal"; }
?>