Skip to content

Commit

Permalink
Merge pull request #4558 from thaJeztah/1.4_backport_winstats
Browse files Browse the repository at this point in the history
[release/1.4 backport] Report correct stats for windows containers
  • Loading branch information
dmcgowan committed Sep 11, 2020
2 parents db93194 + f247618 commit ea29a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ctr/commands/tasks/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func printWindowsContainerStatistics(w *tabwriter.Writer, stats *wstats.WindowsC
if stats.Processor != nil {
fmt.Fprintf(w, "cpu.total_runtime_ns\t%d\t\n", stats.Processor.TotalRuntimeNS)
fmt.Fprintf(w, "cpu.runtime_user_ns\t%d\t\n", stats.Processor.RuntimeUserNS)
fmt.Fprintf(w, "cpu.runtime_kernel_ns\t%d\t\n", stats.Processor.RuntimeUserNS)
fmt.Fprintf(w, "cpu.runtime_kernel_ns\t%d\t\n", stats.Processor.RuntimeKernelNS)
}
if stats.Memory != nil {
fmt.Fprintf(w, "memory.commit_bytes\t%d\t\n", stats.Memory.MemoryUsageCommitBytes)
Expand Down

0 comments on commit ea29a60

Please sign in to comment.