Code

use integer time
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 27 Oct 2006 14:03:22 +0000 (14:03 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 27 Oct 2006 14:03:22 +0000 (14:03 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@919 a5681a0c-68f1-0310-ab6d-d61299d08faa

examples/perftest.pl.in

index f7907c25be3914fd37505ab7a0d56c728afe7862..7a04220df1ccfb5fbf666ee2a63bbc4016805c6a 100755 (executable)
@@ -28,7 +28,7 @@ use RRDs;
 
 sub create($){
   my $file = shift;
-  my $start = time;
+  my $start = int(time);
   RRDs::create  ( $file.".rrd", qw(
                        -s300
                        DS:in:GAUGE:400:U:U