lazy graph update
authorMichael Gernoth <michael@gernoth.net>
Wed, 10 Feb 2010 21:44:48 +0000 (22:44 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 10 Feb 2010 21:44:48 +0000 (22:44 +0100)
upsgraph.pl

index c61b6c0bbad27d56004498dfa452571642fed401..cc98e64969e01ee37284ba0d07d816299222f38a 100755 (executable)
@@ -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);
Impressum, Datenschutz