Skip to content

Commit 35b63c0

Browse files
author
Prashant Bhutani
committed
Report correct stats for windows containers
Windows container stats were reporting incorrect metrics for cpu kernel runtime. Signed-off-by: Prashant Bhutani <[email protected]>
1 parent 8a3f1c9 commit 35b63c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ctr/commands/tasks/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func printWindowsContainerStatistics(w *tabwriter.Writer, stats *wstats.WindowsC
176176
if stats.Processor != nil {
177177
fmt.Fprintf(w, "cpu.total_runtime_ns\t%d\t\n", stats.Processor.TotalRuntimeNS)
178178
fmt.Fprintf(w, "cpu.runtime_user_ns\t%d\t\n", stats.Processor.RuntimeUserNS)
179-
fmt.Fprintf(w, "cpu.runtime_kernel_ns\t%d\t\n", stats.Processor.RuntimeUserNS)
179+
fmt.Fprintf(w, "cpu.runtime_kernel_ns\t%d\t\n", stats.Processor.RuntimeKernelNS)
180180
}
181181
if stats.Memory != nil {
182182
fmt.Fprintf(w, "memory.commit_bytes\t%d\t\n", stats.Memory.MemoryUsageCommitBytes)

0 commit comments

Comments
 (0)