From: Michael Gernoth Date: Mon, 17 Jan 2011 11:32:19 +0000 (+0100) Subject: Revert "disable pango text rendering, it leaks memory" X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/de10ff5911734bcfc735c155aaf70f3dbf6f0414 Revert "disable pango text rendering, it leaks memory" This reverts commit bcd0e31b0502cde60a8a8ab890ed7de361eaab43. --- diff --git a/upsgraph.pl b/upsgraph.pl index 06e66e3..9887d0c 100755 --- a/upsgraph.pl +++ b/upsgraph.pl @@ -325,10 +325,10 @@ while(1) { } foreach my $var (@{$host->{'fields'}}) { - my @graphdef = ("--lazy", "-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000"); + my @graphdef = ('-P', "--lazy", "-t", $hostname." - ".$vars->{$var}->{'name'}, "DEF:${var}=${rrdfile}.${var}:${var}:AVERAGE", "LINE1:${var}#FF0000"); push @graphdef, "VDEF:cur=${var},LAST"; - push @graphdef, 'GPRINT:cur:Current\\: %.2lf\\r'; + push @graphdef, 'GPRINT:cur:Current\\: %.2lf\\r'; my $mtime; $mtime=(stat("${outdir}/${hostname}.${var}.png.work"))[9];