From: Benjamin Oechslein Date: Mon, 19 Jan 2015 16:46:18 +0000 (+0100) Subject: Use alternative autoscaling for y-axis X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/29f39945993945c6dfb2a70c84458453c5a271d6?ds=sidebyside Use alternative autoscaling for y-axis --- diff --git a/upsgraph.pl b/upsgraph.pl index e55622b..adf33c9 100755 --- a/upsgraph.pl +++ b/upsgraph.pl @@ -515,7 +515,7 @@ while(1) { }; } - my @graphdef = ('-P', "-t", $hostname." - ".$vars->{$var}->{'name'}); + my @graphdef = ('-P', "-A", "-t", $hostname." - ".$vars->{$var}->{'name'}); push @graphdef, "--lazy" if !$first; push @graphdef, "DEF:${var}-avg=${rrdfile}.${var}:${var}:AVERAGE";