openbsd-ports/net/rrdtool/patches/patch-examples_shared-demo_pl_in
2004-06-08 20:21:24 +00:00

33 lines
1.2 KiB
Plaintext

$OpenBSD: patch-examples_shared-demo_pl_in,v 1.3 2004/06/08 20:21:24 danh Exp $
--- examples/shared-demo.pl.in.orig 2004-01-02 06:39:14.000000000 -0500
+++ examples/shared-demo.pl.in 2004-06-08 14:19:50.000000000 -0400
@@ -36,8 +36,8 @@ my $RUNS = 500;
my $GRUNS = 4;
my $RRD1 = "shared-demo.rrd";
my $RRD2 = "shared-demob.rrd";
-my $GIF1 = "shared-demo1.gif";
-my $GIF2 = "shared-demo2.gif";
+my $GIF1 = "shared-demo1.png";
+my $GIF2 = "shared-demo2.png";
my $time = 30*int(time/30);
my $START = $time-$RUNS*$STEP;
@@ -120,7 +120,7 @@ for (my $i=0;$i<$GRUNS;$i++) {
'--base', '1024',
"--vertical-label", 'Dummy Units', "--start", (-$RUNS*$STEP),
"--end", $time,
- "--interlace", "--imgformat","GIF",
+ "--interlace", "--imgformat","PNG",
"DEF:alpha=$RRD:a:AVERAGE",
"DEF:beta=$RRD:b:AVERAGE",
"DEF:gamma=$RRD:c:AVERAGE",
@@ -147,7 +147,7 @@ for (my $i=0;$i<$GRUNS;$i++) {
if ($ERROR = RRDs::error) {
print "ERROR: $ERROR\n";
} else {
- print "GIF Size: ${xs}x${ys}\n";
+ print "PNG Size: ${xs}x${ys}\n";
print "Graph Return:\n",(join "\n", @$graphret),"\n\n";
}
}