Skip to content

Commit 69863a0

Browse files
authored
Merge pull request #128 from lf-jeremy/progress-bar-example-test-notify-fix
fixing off-by-1 error in progress bar examples
2 parents 363c753 + 6cc9703 commit 69863a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

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

0 commit comments

Comments
 (0)