Index: trunk/ippScripts/scripts/camera_exp.pl
===================================================================
--- trunk/ippScripts/scripts/camera_exp.pl	(revision 19942)
+++ trunk/ippScripts/scripts/camera_exp.pl	(revision 19971)
@@ -137,4 +137,5 @@
         $cmdflags .= " $line";
     }
+    chomp $cmdflags;
 }
 
@@ -193,4 +194,5 @@
 }
 
+my $dtime_addstar = 0;
 
 unless ($no_op) {
@@ -308,4 +310,6 @@
             $command .= " $realFile";
 
+	    my $mjd_addstar_start = DateTime->now->mjd;   # MJD of starting script
+
             my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
                 run(command => $command, verbose => $verbose);
@@ -314,7 +318,10 @@
                 &my_die("Unable to perform addstar: $error_code", $cam_id, $error_code);
             }
-        }
-    }
-}
+	    $dtime_addstar = 86400.0*(DateTime->now->mjd - $mjd_addstar_start);   # MJD of starting script
+        }
+    }
+}
+
+my $dtime_script = (DateTime->now->mjd - $mjd_start) * 86400;
 
 my $fpaCommand = "$camtool -cam_id $cam_id";
@@ -325,5 +332,6 @@
     $fpaCommand .= " $cmdflags";
     $fpaCommand .= " -hostname $host" if defined $host;
-    $fpaCommand .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
+    $fpaCommand .= " -dtime_script $dtime_script";
+    $fpaCommand .= " -dtime_addstar $dtime_addstar";
 } else {
     $fpaCommand .= " -updaterun -state full";
