1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-12-19 00:29:42 +02:00

m1rc3/norruption/2/collda: corrected $n to be the number of standby failures

This commit is contained in:
Werner Almesberger 2011-10-13 11:06:11 -03:00
parent d6e1e8be0d
commit 86e86dca5a

View File

@ -5,9 +5,10 @@ while (<>) {
next; next;
} }
next unless /Checking : (\S+)\s+CRC failed.* got (\S+)\)/; next unless /Checking : (\S+)\s+CRC failed.* got (\S+)\)/;
if ($1 eq "standby.fpg") {
$n++; $n++;
$c{$n} = $c+1; $c{$n} = $c+1;
next if $1 eq "standby.fpg"; }
next if $last{$1} eq $2; next if $last{$1} eq $2;
if (defined $h{$n}) { if (defined $h{$n}) {
$h{$n} .= ", ".$1; $h{$n} .= ", ".$1;