Skip to content

Commit 7e84abe

Browse files
Merge pull request #4468 from prashantbhutani90/master
Report correct stats for windows containers
2 parents 396b863 + 35b63c0 commit 7e84abe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)