Skip to content

Commit ea29a60

Browse files
authored
Merge pull request #4558 from thaJeztah/1.4_backport_winstats
[release/1.4 backport] Report correct stats for windows containers
2 parents db93194 + f247618 commit ea29a60

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)