IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2023, 11:57:03 AM (3 years ago)
Author:
eugene
Message:

bug fixes, making iterations work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/check_chip_locations.pl

    r42445 r42446  
    7878
    7979        # determine the status of the instances
    80         my ($Nmain, $Nback, $Ndead) = &check_instance_xattr ($inforows, $ext_id, $data_st, $md5_sum);
    81 
    82         &check_instance_state ($outfh, $ext_id, $data_st, $md5_sum, $Nmain, $Nback, $Ndead);
     80        my ($Nmain, $Nback, $Nlost) = &check_instance_xattr ($inforows, $ext_id, $data_st, $md5_sum);
     81
     82        &check_instance_state ($outfh, $ext_id, $data_st, $md5_sum, $Nmain, $Nback, $Nlost);
    8383    }
    8484
     
    239239    my $Nmain = 0;
    240240    my $Nback = 0;
    241     my $Ndead = 0;
     241    my $Nlost = 0;
    242242
    243243    # xattr = 0 means instance @ ITC  (main)
     
    260260        my $xattr    = $values[3];
    261261       
    262         if ($xattr  > 1) { $Ndead ++; next; } # do not save instances on dead partitions
     262        if ($xattr  > 1) { $Nlost ++; next; } # do not save instances on dead partitions
    263263        if ($xattr == 0) { $Nmain ++; }
    264264        if ($xattr == 1) { $Nback ++; }
     
    277277    }
    278278
    279     return ($Nmain, $Nback, $Ndead);
     279    return ($Nmain, $Nback, $Nlost);
    280280}
    281281
     
    288288    my $Nmain = $_[4];
    289289    my $Nback = $_[5];
    290     my $Ndead = $_[6];
     290    my $Nlost = $_[6];
    291291
    292292    my $outinfo = "$extID $data_st $md5_sum";
     
    333333
    334334    # DEAD : no more valid instances
    335     if (($Nmain == 0) && ($Nback == 0) && $Ndead) {
     335    if (($Nmain == 0) && ($Nback == 0) && $Nlost) {
    336336        print $outfh "DEAD: $outinfo\n";
    337337        $Ndead ++;
     
    339339    }
    340340    # GONE : no more valid instances
    341     if (($Nmain == 0) && ($Nback == 0) && ($Ndead == 0)) {
     341    if (($Nmain == 0) && ($Nback == 0) && ($Nlost == 0)) {
    342342        print $outfh "GONE: $outinfo\n";
    343343        $Ngone ++;
Note: See TracChangeset for help on using the changeset viewer.