Skip to content

Commit

Permalink
fix: some warnings and possibile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Cesarato committed Jul 16, 2021
1 parent 932a490 commit 3af6ca3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified dist/scanner
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Abstracts/SingletonAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function __clone()
*
* @return void
*/
private function __wakeup()
public function __wakeup()
{
}
}
2 changes: 1 addition & 1 deletion src/Console/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public static function progress($done, $total, $size = 30)
}
$disp = number_format($perc * 100);
$statusBar .= "] $disp%";
$rate = $done !== 0.0 ? ($now - $startTime) / $done : ($now - $startTime);
$rate = $done !== 0.0 ? ($now - $startTime) / max(1, $done) : ($now - $startTime);
$left = $total - $done;

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

0 comments on commit 3af6ca3

Please sign in to comment.