Completed
Push — master ( b74497...b41611 )
by Benjamin
32:44
created
Command/CronRunCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $em->flush();
53 53
 
54 54
         $end = microtime(true);
55
-        $duration = sprintf('%0.2f', $end - $start);
55
+        $duration = sprintf('%0.2f', $end-$start);
56 56
         $output->writeln("Cron run completed in $duration seconds");
57 57
     }
58 58
 
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
             $statusStr = 'failed';
101 101
         }
102 102
 
103
-        $durationStr = sprintf('%0.2f', $jobEnd - $jobStart);
103
+        $durationStr = sprintf('%0.2f', $jobEnd-$jobStart);
104 104
         $output->writeln("$statusStr in $durationStr seconds");
105 105
 
106 106
         // Record the result
107
-        $this->recordJobResult($job, $jobEnd - $jobStart, $jobOutput->getOutput(), $returnCode);
107
+        $this->recordJobResult($job, $jobEnd-$jobStart, $jobOutput->getOutput(), $returnCode);
108 108
 
109 109
         // And update the job with it's next scheduled time
110 110
         $newTime = new \DateTime();
Please login to merge, or discard this patch.