Skip to content

Commit 3af6ca3

Browse files
author
Marco Cesarato
committed
fix: some warnings and possibile issues
1 parent 932a490 commit 3af6ca3

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

dist/scanner

7 Bytes
Binary file not shown.

src/Abstracts/SingletonAbstract.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private function __clone()
5252
*
5353
* @return void
5454
*/
55-
private function __wakeup()
55+
public function __wakeup()
5656
{
5757
}
5858
}

src/Console/CLI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public static function progress($done, $total, $size = 30)
202202
}
203203
$disp = number_format($perc * 100);
204204
$statusBar .= "] $disp%";
205-
$rate = $done !== 0.0 ? ($now - $startTime) / $done : ($now - $startTime);
205+
$rate = $done !== 0.0 ? ($now - $startTime) / max(1, $done) : ($now - $startTime);
206206
$left = $total - $done;
207207

208208
$eta = round($rate * $left, 2);

0 commit comments

Comments
 (0)