From a10d1f46dd1d1b9fb3256f02275f15861007194d Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 24 Jan 2018 12:37:26 -0800 Subject: [PATCH] fix stats bw --poll output License: MIT Signed-off-by: Jeromy --- core/commands/stat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/commands/stat.go b/core/commands/stat.go index 2cd0c7bee..1cf5f4a0c 100644 --- a/core/commands/stat.go +++ b/core/commands/stat.go @@ -171,7 +171,7 @@ Example: fmt.Fprintf(os.Stdout, "%8s ", humanize.Bytes(uint64(bs.TotalOut))) fmt.Fprintf(os.Stdout, "%8s ", humanize.Bytes(uint64(bs.TotalIn))) fmt.Fprintf(os.Stdout, "%8s/s ", humanize.Bytes(uint64(bs.RateOut))) - fmt.Fprintf(os.Stdout, "%8s/s \n", humanize.Bytes(uint64(bs.RateIn))) + fmt.Fprintf(os.Stdout, "%8s/s \r", humanize.Bytes(uint64(bs.RateIn))) } }()