aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-07-30 21:16:59 +0200
committerPaul Holzinger <paul.holzinger@web.de>2020-07-30 22:36:59 +0200
commit2764d18751f21ec324255f42e5083469afb0e600 (patch)
treef0069c5b95494b7ef8ee078ea29937e7f7e7750f /cmd
parent4132b71478c486b3f4eff6a344ee1b2defbab86f (diff)
downloadpodman-2764d18751f21ec324255f42e5083469afb0e600.tar.gz
podman-2764d18751f21ec324255f42e5083469afb0e600.tar.bz2
podman-2764d18751f21ec324255f42e5083469afb0e600.zip
fix swapped mem_usage/percent fields
Correct the wrong field assignment in `podman stats --format=json`. Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/stats.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/containers/stats.go b/cmd/podman/containers/stats.go
index 2b4c46647..ddb5f32ef 100644
--- a/cmd/podman/containers/stats.go
+++ b/cmd/podman/containers/stats.go
@@ -230,8 +230,8 @@ func outputJSON(stats []*containerStats) error {
Id: j.ID(),
Name: j.Name,
CpuPercent: j.CPUPerc(),
- MemUsage: j.MemPerc(),
- MemPerc: j.MemUsage(),
+ MemUsage: j.MemUsage(),
+ MemPerc: j.MemPerc(),
NetIO: j.NetIO(),
BlockIO: j.BlockIO(),
Pids: j.PIDS(),