From 171e2ad21ab0061bbfbec1edf4a902b83c0ddfd7 Mon Sep 17 00:00:00 2001 From: hadaq Date: Wed, 14 Nov 2012 23:17:05 +0000 Subject: [PATCH] *** empty log message *** --- cts/htdocs/thresh/get.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]}) { -- 2.43.0