Skip to content

Commit

Permalink
Merge pull request #128 from lf-jeremy/progress-bar-example-test-noti…
Browse files Browse the repository at this point in the history
…fy-fix

fixing off-by-1 error in progress bar examples
  • Loading branch information
schlessera committed Mar 12, 2018
2 parents 363c753 + 6cc9703 commit 69863a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/common.php
Expand Up @@ -17,7 +17,7 @@
}

function test_notify(cli\Notify $notify, $cycle = 1000000, $sleep = null) {
for ($i = 0; $i <= $cycle; $i++) {
for ($i = 0; $i < $cycle; $i++) {
$notify->tick();
if ($sleep) usleep($sleep);
}
Expand Down

0 comments on commit 69863a0

Please sign in to comment.