From 9b469321b556f075fa2bd837119dfb9257734d4c Mon Sep 17 00:00:00 2001 From: Shuwei Hao Date: Thu, 10 Dec 2015 06:57:25 +0000 Subject: [PATCH] Modify word spelling errors in stats.go Signed-off-by: Shuwei Hao Upstream-commit: 413e058b72eab50001496b1a4d0af7393be26df0 Component: engine --- components/engine/api/client/stats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/api/client/stats.go b/components/engine/api/client/stats.go index 6ffee7f27c..fbbaaf2a93 100644 --- a/components/engine/api/client/stats.go +++ b/components/engine/api/client/stats.go @@ -62,7 +62,7 @@ func (s *containerStats) Collect(cli *DockerCli, streamStats bool) { var memPercent = 0.0 var cpuPercent = 0.0 - // MemoryStats.Limit will never be 0 unless the container is not running and we havn't + // MemoryStats.Limit will never be 0 unless the container is not running and we haven't // got any data from cgroup if v.MemoryStats.Limit != 0 { memPercent = float64(v.MemoryStats.Usage) / float64(v.MemoryStats.Limit) * 100.0 @@ -287,7 +287,7 @@ func (cli *DockerCli) CmdStats(args ...string) error { if ok { if err != nil { // this is suppressing "unexpected EOF" in the cli when the - // daemon restarts so it shudowns cleanly + // daemon restarts so it shutdowns cleanly if err == io.ErrUnexpectedEOF { return nil }