From 5b394f0f981408afa9c85b0b070c465e05f3675b Mon Sep 17 00:00:00 2001 From: Fridrik Asmundsson Date: Wed, 27 Sep 2023 14:06:26 +0000 Subject: [PATCH] small fixes --- cmd/lotus-bench/cli.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-bench/cli.go b/cmd/lotus-bench/cli.go index e9cd84c43..0eaeb6ccb 100644 --- a/cmd/lotus-bench/cli.go +++ b/cmd/lotus-bench/cli.go @@ -74,7 +74,7 @@ Here are some real examples: var cmds []*CMD for _, str := range cctx.StringSlice("cmd") { - entries := strings.SplitN(str, ":", 4) + entries := strings.SplitN(str, ":", 3) if len(entries) == 0 { return errors.New("invalid cmd format") } @@ -153,7 +153,7 @@ Here are some real examples: ticker := time.NewTicker(cctx.Duration("watch")) for { clearAndPrintReport := func() { - // clear the screen move the curser to the top left + // clear the screen move the cursor to the top left fmt.Print("\033[2J") fmt.Printf("\033[%d;%dH", 1, 1) for i, cmd := range cmds {