summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2020-07-30 21:16:59 +0200
committerMatthew Heon <matthew.heon@pm.me>2020-07-31 11:44:16 -0400
commit994dc3294291e07926954737c3874457affb9994 (patch)
treeb133cd1430177b072b78630914dbd677da9f4f60
parent8e9724524d2eef8d67afa1de2300bb0eaa49bd18 (diff)
downloadpodman-994dc3294291e07926954737c3874457affb9994.tar.gz
podman-994dc3294291e07926954737c3874457affb9994.tar.bz2
podman-994dc3294291e07926954737c3874457affb9994.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>
-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 86674cfc9..76a6ab46e 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(),