diff --git a/docker_stats.go b/docker_stats.go index f67d5fe..c5af7d7 100644 --- a/docker_stats.go +++ b/docker_stats.go @@ -292,7 +292,7 @@ func calculateCPUPercentWindows(v *types.StatsJSON) float64 { // Max number of 100ns intervals between the previous time read and now possIntervals := uint64(v.Read.Sub(v.PreRead).Nanoseconds()) // Start with number of ns intervals possIntervals /= 100 // Convert to number of 100ns intervals - possIntervals *= uint64(v.NumProcs) // Multiple by the number of processors + possIntervals *= uint64(v.NumProcs) // Multiply by the number of processors // Intervals used intervalsUsed := v.CPUStats.CPUUsage.TotalUsage - v.PreCPUStats.CPUUsage.TotalUsage