mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Replace fmt.Fprint* with io.WriteString
This fixes vet warnings in api/client/stats.go Fixes #11825 Signed-off-by: Ankush Agarwal <ankushagarwal11@gmail.com>
This commit is contained in:
parent
121de9e4e3
commit
6d21b2ba80
1 changed files with 3 additions and 3 deletions
|
@ -123,9 +123,9 @@ func (cli *DockerCli) CmdStats(args ...string) error {
|
|||
w = tabwriter.NewWriter(cli.out, 20, 1, 3, ' ', 0)
|
||||
)
|
||||
printHeader := func() {
|
||||
fmt.Fprint(cli.out, "\033[2J")
|
||||
fmt.Fprint(cli.out, "\033[H")
|
||||
fmt.Fprintln(w, "CONTAINER\tCPU %\tMEM USAGE/LIMIT\tMEM %\tNET I/O")
|
||||
io.WriteString(cli.out, "\033[2J")
|
||||
io.WriteString(cli.out, "\033[H")
|
||||
io.WriteString(w, "CONTAINER\tCPU %\tMEM USAGE/LIMIT\tMEM %\tNET I/O\n")
|
||||
}
|
||||
for _, n := range names {
|
||||
s := &containerStats{Name: n}
|
||||
|
|
Loading…
Reference in a new issue