diff --git a/examples/minmax.pl.in b/examples/minmax.pl.in
index 29c016932497c9ef3d89726a71f554f18d86905e..3fd0e65ca5c7611e59b5f063fe88af015e3d86eb 100755 (executable)
--- a/examples/minmax.pl.in
+++ b/examples/minmax.pl.in
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,
;
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";