]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
*** empty log message ***
authorhadaq <hadaq>
Wed, 14 Nov 2012 23:17:05 +0000 (23:17 +0000)
committerhadaq <hadaq>
Wed, 14 Nov 2012 23:17:05 +0000 (23:17 +0000)
cts/htdocs/thresh/get.pl

index 9d7e55c5ec05d6ce60a15f412696282797d9b8cf..b28d11462c69a47973993732b0f6d201a7c8eeb9 100755 (executable)
@@ -30,12 +30,13 @@ if($amount != 1) {
       }
     }
   else {
-    my $chunk = $amount/$split;
+    my $chunk = int($amount/$split);
     if($amount%$split) {$chunk++;}
     my $i = 0;
     my @hits;
     do {
       $hits[$i] = trb_register_read_mem($board,$addr+$i*$chunk,0,$chunk);
+#      print Dumper  %{$hits[$i]};
 #       print ($board." ".($addr+$i*$chunk)." ".($amount/$split)."\n");
       } while(++$i < $split);
     foreach my $b (sort keys %{$hits[0]}) {