From: hadaq Date: Wed, 14 Nov 2012 23:17:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=171e2ad21ab0061bbfbec1edf4a902b83c0ddfd7;p=daqtools.git *** empty log message *** --- diff --git a/cts/htdocs/thresh/get.pl b/cts/htdocs/thresh/get.pl index 9d7e55c..b28d114 100755 --- a/cts/htdocs/thresh/get.pl +++ b/cts/htdocs/thresh/get.pl @@ -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]}) {