Merge pull request #10901 from rseymour/patch-1

calcuate -> calculate typo fix
This commit is contained in:
Jessie Frazelle 2015-02-19 10:34:05 -08:00
commit a4b04544b7

View file

@ -2648,7 +2648,7 @@ func (s *containerStats) Collect(cli *DockerCli) {
cpuPercent = 0.0
)
if !start {
cpuPercent = calcuateCpuPercent(previousCpu, previousSystem, v)
cpuPercent = calculateCpuPercent(previousCpu, previousSystem, v)
}
start = false
s.mu.Lock()
@ -2755,7 +2755,7 @@ func (cli *DockerCli) CmdStats(args ...string) error {
return nil
}
func calcuateCpuPercent(previousCpu, previousSystem uint64, v *stats.Stats) float64 {
func calculateCpuPercent(previousCpu, previousSystem uint64, v *stats.Stats) float64 {
var (
cpuPercent = 0.0
// calculate the change for the cpu usage of the container in between readings