X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fminmax.pl.in;h=3fd0e65ca5c7611e59b5f063fe88af015e3d86eb;hp=1e94a6fac6fad2e5f8f48487becbd2af4e475078;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=cffc3b561fbc7bafbde87b10edf18013df3da531 diff --git a/examples/minmax.pl.in b/examples/minmax.pl.in index 1e94a6f..3fd0e65 100755 --- a/examples/minmax.pl.in +++ b/examples/minmax.pl.in @@ -6,7 +6,7 @@ use RRDs; my $start=time; my $rrd="randome.rrd"; my $name = $0; -$name =~ s/.*///g; +$name =~ s/.*\///g; $name =~ s/\.pl.*//g; RRDs::create ($rrd, "--start",$start-1, "--step",300, @@ -44,7 +44,7 @@ RRDs::graph "$name.png", ; if ($ERROR = RRDs::error) { - print "ERROR: $ERROR\n"; + die "ERROR: $ERROR\n"; };