IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27990


Ignore:
Timestamp:
May 17, 2010, 7:10:26 PM (16 years ago)
Author:
bills
Message:

fix stupid bug managing lastCamRun

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r27953 r27990  
    871871    my $exp_id = $image->{exp_id};
    872872    if (defined $lastCamRun) {
    873         # running camtool 60 times is really expensive when the answer is the same every time
    874         $image->{astrom} = $lastCamRun->{astrom};
    875         $image->{cam_path_base} = $lastCamRun->{path_base};
    876         return 1;
     873        if ($lastCamRun->{exp_id} == $exp_id) {
     874            # running camtool 60 times is really expensive when the answer is the same every time
     875            $image->{astrom} = $lastCamRun->{astrom};
     876            $image->{cam_path_base} = $lastCamRun->{path_base};
     877            return 1;
     878        }
    877879    }
    878880    # $last_exp_id = 0;
Note: See TracChangeset for help on using the changeset viewer.