diff --git a/README.md b/README.md index e7d0bc0..1acbb3b 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ ) for i := 0; i < total; i++ { - time.Sleep(time.Duration(rand.Intn(100)) * time.Millisecond) - bar.Incr(1) // increment progress bar + time.Sleep(time.Duration(rand.Intn(10)+1) * time.Second / 100) + bar.Increment() } p.Stop()