X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=examples%2Fshared-demo.pl.in;h=6d9374f647f026e09a2e43a26afaf9968f62c468;hp=596fb0622b19da7670d529e5523ce38096779ae2;hb=c2588300e3b61df51b846dd79d90b3da9628d0cb;hpb=23be36896d8cf89dd9dbcdb2bb62677ca01810f8 diff --git a/examples/shared-demo.pl.in b/examples/shared-demo.pl.in index 596fb06..6d9374f 100755 --- a/examples/shared-demo.pl.in +++ b/examples/shared-demo.pl.in @@ -14,11 +14,8 @@ sub ok 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); @@ -91,7 +88,7 @@ my $counter = 1e7; for (my $t=$START+1; $t<$START+$STEP*$RUNS; $t+=$STEP+int((rand()-0.5)*7)){ - $counter += 2500*sin($t/2000)*$STEP; + $counter += int(2500*sin($t/2000)*$STEP); my $data = (1000+500*sin($t/1000)).":". (1000+900*sin($t/2330)).":". (2000*cos($t/1550)).":".