From ab6754178fa32008bc32632e178c5474332420f9 Mon Sep 17 00:00:00 2001 From: Manuel Koch Date: Fri, 27 Jan 2023 11:43:52 +0100 Subject: [PATCH] Fix typo --- docker_stats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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