From 7770ec3d8ae567a8b766ba81619d4f712c0cd02d Mon Sep 17 00:00:00 2001 From: nxshock Date: Wed, 10 Aug 2022 21:09:50 +0500 Subject: [PATCH] Update example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3eee66f..7f56bcb 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ import ( func main() { stepsCount := 1000 - eta := eta.New(time.Minute, stepsCount) + eta := eta.New(stepsCount) processed := 0 @@ -39,6 +39,5 @@ func main() { time.Sleep(time.Second) // Update progress every second fmt.Fprintf(os.Stderr, "\rProcessed %d of %d, ETA: %s", processed, stepsCount, eta.Eta().Format("15:04:05")) } - } ``` \ No newline at end of file