Changeset 19971
- Timestamp:
- Oct 7, 2008, 4:31:47 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/camera_exp.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/camera_exp.pl
r19942 r19971 137 137 $cmdflags .= " $line"; 138 138 } 139 chomp $cmdflags; 139 140 } 140 141 … … 193 194 } 194 195 196 my $dtime_addstar = 0; 195 197 196 198 unless ($no_op) { … … 308 310 $command .= " $realFile"; 309 311 312 my $mjd_addstar_start = DateTime->now->mjd; # MJD of starting script 313 310 314 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 311 315 run(command => $command, verbose => $verbose); … … 314 318 &my_die("Unable to perform addstar: $error_code", $cam_id, $error_code); 315 319 } 316 } 317 } 318 } 320 $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start); # MJD of starting script 321 } 322 } 323 } 324 325 my $dtime_script = (DateTime->now->mjd - $mjd_start) * 86400; 319 326 320 327 my $fpaCommand = "$camtool -cam_id $cam_id"; … … 325 332 $fpaCommand .= " $cmdflags"; 326 333 $fpaCommand .= " -hostname $host" if defined $host; 327 $fpaCommand .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400)); 334 $fpaCommand .= " -dtime_script $dtime_script"; 335 $fpaCommand .= " -dtime_addstar $dtime_addstar"; 328 336 } else { 329 337 $fpaCommand .= " -updaterun -state full";
Note:
See TracChangeset
for help on using the changeset viewer.
