index 802197130380c730973b735d813809919fc54891..f01c1ae1c886adf294515ef546141471cb8eb08d 100755 (executable)
print "ok $ok_count $what\n";
}
-#makes things work when run without install
-use lib qw( ../bindings/perl-shared/blib/lib ../bindings/perl-shared/blib/arch );
-
#makes programm work AFTER install
-use lib qw( @prefix@/lib/perl ../lib/perl );
+use lib qw( @prefix@/lib/perl );
use strict;
use vars qw(@ISA $loaded);
$t<$START+$STEP*$RUNS;
$t+=$STEP+int((rand()-0.5)*7)){
$counter += int(2500*sin($t/2000)*$STEP);
- my $data = int(1000+500*sin($t/1000)).":".
- int(1000+900*sin($t/2330)).":".
- int(2000*cos($t/1550)).":".
- int(3220*sin($t/3420)).":$counter";
+ my $data = (1000+500*sin($t/1000)).":".
+ (1000+900*sin($t/2330)).":".
+ (2000*cos($t/1550)).":".
+ (3220*sin($t/3420)).":$counter";
push(@options, "$t:$data");
RRDs::update $RRD1, "$t:$data";
if ($ERROR = RRDs::error) {
"VRULE:".($now-7200)."#008877:120 Minutes ago";
if ($ERROR = RRDs::error) {
- print "ERROR: $ERROR\n";
+ die "ERROR: $ERROR\n";
} else {
print "Image Size: ${xs}x${ys}\n";
print "Graph Return:\n",(join "\n", @$graphret),"\n\n";
my ($start,$step,$names,$array) = RRDs::fetch $RRD1, "AVERAGE";
$ERROR = RRDs::error;
-print "ERROR: $ERROR\n" if $ERROR ;
+die "ERROR: $ERROR\n" if $ERROR ;
print "start=$start, step=$step\n";
print " ";
map {printf("%12s",$_)} @$names ;