Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oldabl authored Apr 10, 2024
1 parent c0dd11c commit 71f6478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Now use as class ProgressBar.
max = 30
progressbar = ProgressBar()
for n in range(0,max):
progressbar.print(n,max)
progressbar.print(n,max-1)
time.sleep(1) # To see progress
```

Expand All @@ -25,7 +25,7 @@ for n in range(0,max):
max = 30
progressbar = ProgressBar()
number = multiprocessing.Value("i", 0)
pr = multiprocessing.Process(target=progressbar.inThread, args=(number,max))
pr = multiprocessing.Process(target=progressbar.inThread, args=(number,max-1))
pr.start()
# YOUR CODE GOES BELOW
# It needs to increment the ProgressBar number
Expand Down

0 comments on commit 71f6478

Please sign in to comment.