X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fpiped-demo.pl;h=2dbbcc413884e2328093826dc62b9f702e46b328;hp=561d9267d3babd16c684e6aea311fff67b58b55d;hb=0fe03275068c0e55d01a7cc2308fa12fdee569cf;hpb=3a4825306f808c36fb2c529f27c5457a0715dfaf diff --git a/examples/piped-demo.pl b/examples/piped-demo.pl index 561d926..2dbbcc4 100755 --- a/examples/piped-demo.pl +++ b/examples/piped-demo.pl @@ -1,4 +1,4 @@ -#! /bin/perl +#! /usr/bin/perl #makes things work when run without install use lib qw( ../bindings/perl-piped/blib/lib ../lib/perl ); @@ -16,7 +16,7 @@ $STEP = 300; $RUNS = 12*24*30*6; $GRUNS = 20; $RRD = "piped-demo.rrd"; -$GIF = "piped-demo.gif"; +$SVG = "piped-demo.svg"; $PNG = "piped-demo.png"; # some magic to find the correct rrdtol executable @@ -67,11 +67,11 @@ printf "-- performance analysis Update test\n". print "\n"; # creating some graphs -print "* Creating $GRUNS GIF graphs: $GIF\n\n"; +print "* Creating $GRUNS SVG graphs: $SVG\n\n"; $now = time; for ($i=0;$i<$GRUNS;$i++) { -RRDp::cmd "graph $GIF ", "--title 'Test GRAPH' ", - "--height 150 --vertical-label 'Dummy Units' ". +RRDp::cmd "graph $SVG ", "--title 'Test GRAPH' ", + "--imgformat SVG --height 150 --vertical-label 'Dummy Units' ". "--start now".(-$RUNS*$STEP), "--color ARROW#bfbfbf", "DEF:alpha=$RRD:in:AVERAGE",