X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fminmax.pl.in;h=3fd0e65ca5c7611e59b5f063fe88af015e3d86eb;hp=29c016932497c9ef3d89726a71f554f18d86905e;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=c2588300e3b61df51b846dd79d90b3da9628d0cb diff --git a/examples/minmax.pl.in b/examples/minmax.pl.in index 29c0169..3fd0e65 100755 --- a/examples/minmax.pl.in +++ b/examples/minmax.pl.in @@ -6,6 +6,7 @@ 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, @@ -43,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";