@@ -22,6 +22,9 @@ |
||
22 | 22 | */ |
23 | 23 | protected $startTime = null; |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $timeout |
|
27 | + */ |
|
25 | 28 | public function __construct($timeout, Cron $cron) |
26 | 29 | { |
27 | 30 | $this->timeout = $timeout; |
@@ -95,7 +95,7 @@ |
||
95 | 95 | public function getScriptPath() |
96 | 96 | { |
97 | 97 | if (!$this->scriptPath) { |
98 | - $this->scriptPath = getcwd() . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR; |
|
98 | + $this->scriptPath = getcwd() . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR; |
|
99 | 99 | } |
100 | 100 | return $this->scriptPath; |
101 | 101 | } |
@@ -64,9 +64,9 @@ |
||
64 | 64 | private function getExecutionTime($startTime, $endTime) |
65 | 65 | { |
66 | 66 | $executionTime = $endTime - $startTime; |
67 | - $days = floor($executionTime / 3600*24); |
|
68 | - $hours = floor(($executionTime - ($days*3600*24)) / 3600); |
|
69 | - $minutes = floor(($executionTime - ($hours*3600)) / 60); |
|
67 | + $days = floor($executionTime / 3600 * 24); |
|
68 | + $hours = floor(($executionTime - ($days * 3600 * 24)) / 3600); |
|
69 | + $minutes = floor(($executionTime - ($hours * 3600)) / 60); |
|
70 | 70 | $secs = floor($executionTime % 60); |
71 | 71 | |
72 | 72 | $executionTimeText = ''; |