X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fbigtops.pl.in;h=997386c5148278d4938fab79758d11fedf7550b8;hp=b3fa6e41f8aeb18848db0bbf0c5092ecf201c748;hb=ca8d9c109d76e8c024f21edd10474e0e5d29b892;hpb=c2588300e3b61df51b846dd79d90b3da9628d0cb diff --git a/examples/bigtops.pl.in b/examples/bigtops.pl.in index b3fa6e4..997386c 100755 --- a/examples/bigtops.pl.in +++ b/examples/bigtops.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, @@ -41,7 +42,7 @@ RRDs::graph "$name.png", ; if ($ERROR = RRDs::error) { - print "ERROR: $ERROR\n"; + die "ERROR: $ERROR\n"; };