1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request from haoshuwei/modify-wordspelling-in-docker-stats

Modify word spelling  in stats.go's comments
This commit is contained in:
Sebastiaan van Stijn 2015-12-10 13:32:10 +01:00
commit 3d82564c7a

View file

@ -62,7 +62,7 @@ func (s *containerStats) Collect(cli *DockerCli, streamStats bool) {
var memPercent = 0.0 var memPercent = 0.0
var cpuPercent = 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 // got any data from cgroup
if v.MemoryStats.Limit != 0 { if v.MemoryStats.Limit != 0 {
memPercent = float64(v.MemoryStats.Usage) / float64(v.MemoryStats.Limit) * 100.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 ok {
if err != nil { if err != nil {
// this is suppressing "unexpected EOF" in the cli when the // 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 { if err == io.ErrUnexpectedEOF {
return nil return nil
} }