From 2b138a5eaf82bc55d32fa0116e5836dd01226c6a Mon Sep 17 00:00:00 2001 From: Rich Seymour Date: Thu, 19 Feb 2015 12:41:48 -0500 Subject: [PATCH] calcuate -> calculate typo fix Signed-off-by: Rich Seymour Upstream-commit: ea8cb16af7e8c83a264a1d1c48db3cacd4cc082b Component: engine --- components/engine/api/client/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/api/client/commands.go b/components/engine/api/client/commands.go index 7cc2582b89..d232a490b4 100644 --- a/components/engine/api/client/commands.go +++ b/components/engine/api/client/commands.go @@ -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