Skip to content

Commit 71f6478

Browse files
authored
Update README.md
1 parent c0dd11c commit 71f6478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Now use as class ProgressBar.
1616
max = 30
1717
progressbar = ProgressBar()
1818
for n in range(0,max):
19-
progressbar.print(n,max)
19+
progressbar.print(n,max-1)
2020
time.sleep(1) # To see progress
2121
```
2222

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

0 commit comments

Comments
 (0)