Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-koch committed Jan 27, 2023
1 parent 22548c4 commit ab67541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab67541

Please sign in to comment.