X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fminmax.pl.in;h=3fd0e65ca5c7611e59b5f063fe88af015e3d86eb;hp=14faecbd11bbe6840ea99d9b4d910f0514adc448;hb=15a6a9daa43842107b430edeb535d0e8e3baadb0;hpb=a1fe8fd19bb4f558150e52c0624869667b739877 diff --git a/examples/minmax.pl.in b/examples/minmax.pl.in index 14faecb..3fd0e65 100755 --- a/examples/minmax.pl.in +++ b/examples/minmax.pl.in @@ -1,14 +1,12 @@ #! @PERL@ -#makes things work when run without install -use lib qw( ../bindings/perl-shared/blib/lib ../bindings/perl-shared/blib/arch ); -# this is for after install -use lib qw( @prefix@/lib/perl ../lib/perl ); +use lib qw( @prefix@/lib/perl ); use RRDs; my $start=time; my $rrd="randome.rrd"; my $name = $0; +$name =~ s/.*\///g; $name =~ s/\.pl.*//g; RRDs::create ($rrd, "--start",$start-1, "--step",300, @@ -46,9 +44,9 @@ RRDs::graph "$name.png", ; if ($ERROR = RRDs::error) { - print "ERROR: $ERROR\n"; + die "ERROR: $ERROR\n"; }; print "This script has created $name.png in the current directory\n"; -print "This demonstrates the use of the TIME and % RPN operators\n"; +print "This demonstrates the use of MIN and MAX archives\n";