From: Michael Gernoth Date: Wed, 10 Feb 2010 21:44:48 +0000 (+0100) Subject: lazy graph update X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/0d418146ac71e4ec7975b8e948765ce3add600be?ds=inline;hp=46ead44b92d43186d9bfb7353f9ed391ff4a90bd lazy graph update --- diff --git a/upsgraph.pl b/upsgraph.pl index c61b6c0..cc98e64 100755 --- a/upsgraph.pl +++ b/upsgraph.pl @@ -323,7 +323,7 @@ while(1) { } foreach my $var (@{$host->{'fields'}}) { - my @graphdef = ("-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000"); + my @graphdef = ("--lazy", "-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000"); (my $averages, my $width, my $height) = RRDs::graph("${outdir}/${hostname}.${var}.png.new", "-w", "720", @graphdef);