X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fshared-demo.pl.in;h=9442196159ede46758e0fe273bf4db494b8cf514;hb=8266310ddd3ad396c7d241a4fecbf290c5e7ec0c;hp=802197130380c730973b735d813809919fc54891;hpb=a4e465de6b8cb972864ec1636bef470dd1173d89;p=rrdtool.git diff --git a/examples/shared-demo.pl.in b/examples/shared-demo.pl.in index 8021971..9442196 100755 --- a/examples/shared-demo.pl.in +++ b/examples/shared-demo.pl.in @@ -92,10 +92,10 @@ for (my $t=$START+1; $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) {