Skip to content

Commit

Permalink
Replace fmt.Fprint* with io.WriteString
Browse files Browse the repository at this point in the history
This fixes vet warnings in api/client/stats.go

Fixes moby#11825

Signed-off-by: Ankush Agarwal <[email protected]>
  • Loading branch information
ankushagarwal committed Mar 27, 2015
1 parent 121de9e commit 6d21b2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/client/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6d21b2b

Please sign in to comment.