From 0d418146ac71e4ec7975b8e948765ce3add600be Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Wed, 10 Feb 2010 22:44:48 +0100 Subject: [PATCH] lazy graph update --- upsgraph.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5