my $id_3 = ($board >> 0) & 0x0f;
my $val = ((($rh_trigErr->{$board} >> 16) & 0xffff) +
($rh_trigErr->{$board} & 0xffff));
+ #printf "board: %x: id: $id id_0: $id_0 id_1: $id_1 id_2: $id_2 id_3: $id_3 val: $val\n",$board;
if ($id_0 == 0x2) {
$store{$id_1}->{$id_2}->{$id_3} = $val;
}
$store2{$id} += $val;
}
+ #print Dumper $boards;
# if ($seconds>=5) {
# $boards->{0x7466} = 10;
# }
my $sum = 0;
my $totalsum = 0;
#print Dumper $boards;
+ #print "allboards:\n";
+ #print Dumper $allboards;
if ($seconds>0 && exists $boards->{0xfc00}) {
#print "in check\n";
# foreach my $c (keys %store2) {
$diff_10sec = $boards->{$c} - $boards_history[9]->{$c} if (defined $boards_history[9]->{$c});
while ($diff < 0) { $diff += 2**16; }
while ($diff_10sec < 0) { $diff_10sec += 2**16; }
+
+ #print "diff:_$diff , totalsum: $totalsum\n";
+ $sum += $diff;
$totalsum += $boards->{$c};
if ( $diff != 0 || $diff_10sec !=0 ) {
%laststore2 = %store2;
%$allboards = %$boards;
+ $sum=0;
sleep 1;
$seconds++;
my %temp_boards = %$boards;