From: oetiker Date: Tue, 11 Oct 2005 16:37:58 +0000 (+0000) Subject: the images should be written to the current directory ... -- Alex X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=49847c8ea233af5ca7d11cf4cbfacb90b031c44a;p=rrdtool-all.git the images should be written to the current directory ... -- Alex git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@699 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/examples/4charts.pl.in b/program/examples/4charts.pl.in index beeb6f4a..828595cf 100755 --- a/program/examples/4charts.pl.in +++ b/program/examples/4charts.pl.in @@ -8,6 +8,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, diff --git a/program/examples/bigtops.pl.in b/program/examples/bigtops.pl.in index b3fa6e41..0f5d98cc 100755 --- a/program/examples/bigtops.pl.in +++ b/program/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, diff --git a/program/examples/minmax.pl.in b/program/examples/minmax.pl.in index 29c01693..1e94a6fa 100755 --- a/program/examples/minmax.pl.in +++ b/program/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, @@ -48,4 +49,4 @@ if ($ERROR = RRDs::error) { 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";