From 6cc97039e46d6f0c39fe531374267b151d74c5bd Mon Sep 17 00:00:00 2001 From: Jeremy Hough Date: Thu, 8 Mar 2018 14:00:59 -0500 Subject: [PATCH] fixing off-by-1 error in progress bar examples --- examples/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.php b/examples/common.php index bf74c3c..b0ad234 100644 --- a/examples/common.php +++ b/examples/common.php @@ -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); }