Attached a patch for the rrd-tool LIBDBI integration with the following improvements:
[rrdtool.git] / examples / minmax.pl.in
index 1e94a6f..3fd0e65 100755 (executable)
@@ -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";
 };