fixes to ntp application and improvement to common grapher

git-svn-id: http://www.observium.org/svn/observer/trunk@2628 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-30 23:06:18 +00:00
parent e50ec1588e
commit dd0e7d3671
3 changed files with 34 additions and 16 deletions
+3 -1
View File
@@ -11,10 +11,12 @@ if ($_GET['title'] == "yes") { $rrd_options .= " --title='".$graph_title."' ";
if (isset($_GET['graph_title'])) { $rrd_options .= " --title='".$_GET['graph_title']."' "; }
if (!$scale_min && !$scale_max) { $rrd_options .= " --alt-autoscale-max"; }
#if (!isset($scale_min) && !isset($scale_max)) { $rrd_options .= " --alt-autoscale-max"; }
if (isset($scale_min)) { $rrd_options .= " -l $scale_min"; }
if (isset($scale_max)) { $rrd_options .= " -u $scale_max"; }
if (isset($scale_rigid)) { $rrd_options .= " -r"; }
$rrd_options .= " -E --start ".$from." --end " . $to . " --width ".$width." --height ".$height." ";
$rrd_options .= $config['rrdgraph_def_text'];