diff --git a/agent/stats/utils_windows.go b/agent/stats/utils_windows.go index 45f8897b649..60b289d53b3 100644 --- a/agent/stats/utils_windows.go +++ b/agent/stats/utils_windows.go @@ -28,7 +28,7 @@ func dockerStatsToContainerStats(dockerStats *docker.Stats) (*ContainerStats, er return nil, fmt.Errorf("invalid number of cpu cores acquired from the system") } - cpuUsage := dockerStats.CPUStats.CPUUsage.TotalUsage / numCores + cpuUsage := (dockerStats.CPUStats.CPUUsage.TotalUsage * 100) / numCores memoryUsage := dockerStats.MemoryStats.PrivateWorkingSet return &ContainerStats{ cpuUsage: cpuUsage,