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