diff --git a/core/commands/stat.go b/core/commands/stat.go index d581b3209ae..1f6a0070311 100644 --- a/core/commands/stat.go +++ b/core/commands/stat.go @@ -154,7 +154,9 @@ Example: defer re.Close() polling, _ := res.Request().Options["poll"].(bool) - fmt.Fprintln(os.Stdout, "Total Up Total Down Rate Up Rate Down") + if polling { + fmt.Fprintln(os.Stdout, "Total Up Total Down Rate Up Rate Down") + } for { v, err := res.Next() if !cmds.HandleError(err, res, re) {