From e915e3ceb25476abefef5fbd9314cb19ef292b89 Mon Sep 17 00:00:00 2001 From: Vladimir Bauer Date: Fri, 16 Aug 2024 17:09:44 +0500 Subject: [PATCH] use default ewma age in examples --- _examples/io/main.go | 2 +- _examples/poplog/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_examples/io/main.go b/_examples/io/main.go index 0e051e64..8d765a7f 100644 --- a/_examples/io/main.go +++ b/_examples/io/main.go @@ -35,7 +35,7 @@ func main() { mpb.AppendDecorators( decor.EwmaETA(decor.ET_STYLE_GO, 30), decor.Name(" ] "), - decor.EwmaSpeed(decor.SizeB1024(0), "% .2f", 60), + decor.EwmaSpeed(decor.SizeB1024(0), "% .2f", 30), ), ) diff --git a/_examples/poplog/main.go b/_examples/poplog/main.go index ff875c96..f4efd6ac 100644 --- a/_examples/poplog/main.go +++ b/_examples/poplog/main.go @@ -24,7 +24,7 @@ func main() { ), mpb.AppendDecorators( decor.OnComplete(decor.Name(" "), ""), - decor.OnComplete(decor.EwmaETA(decor.ET_STYLE_GO, 60), ""), + decor.OnComplete(decor.EwmaETA(decor.ET_STYLE_GO, 30), ""), ), ) // simulating some work