diff options
author | Stuart Shelton <stuart@shelton.me> | 2021-01-12 23:37:24 +0000 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2021-01-12 23:38:08 +0000 |
commit | a6af56f5b45b3014c1e548d8c84e23e7cb341f5d (patch) | |
tree | 8db33ee4b7d83c8fca7dd1ffae1d69241eaf2117 /cmd/podman/pods/stats.go | |
parent | 265ec914d3a2286c0e4070842c942c1fee0dd7df (diff) | |
download | podman-a6af56f5b45b3014c1e548d8c84e23e7cb341f5d.tar.gz podman-a6af56f5b45b3014c1e548d8c84e23e7cb341f5d.tar.bz2 podman-a6af56f5b45b3014c1e548d8c84e23e7cb341f5d.zip |
Add 'MemUsageBytes' format option
Although storage is more human-readable when expressed in SI units,
IEC/JEDEC (Bytes) units are more pertinent for memory-related values
(and match the format of the --memory* command-line options).
(To prevent possible compatibility issues, the default SI display is
left unchanged)
See https://github.com/containers/podman/issues/8945
Signed-off-by: Stuart Shelton <stuart@shelton.me>
Diffstat (limited to 'cmd/podman/pods/stats.go')
-rw-r--r-- | cmd/podman/pods/stats.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/podman/pods/stats.go b/cmd/podman/pods/stats.go index 79e7cd8ed..5f79fa016 100644 --- a/cmd/podman/pods/stats.go +++ b/cmd/podman/pods/stats.go @@ -75,11 +75,12 @@ func stats(cmd *cobra.Command, args []string) error { doJSON := report.IsJSON(row) headers := report.Headers(entities.PodStatsReport{}, map[string]string{ - "CPU": "CPU %", - "MemUsage": "MEM USAGE/ LIMIT", - "MEM": "MEM %", - "NET IO": "NET IO", - "BlockIO": "BLOCK IO", + "CPU": "CPU %", + "MemUsage": "MEM USAGE/ LIMIT", + "MemUsageBytes": "MEM USAGE/ LIMIT", + "MEM": "MEM %", + "NET IO": "NET IO", + "BlockIO": "BLOCK IO", }) for ; ; time.Sleep(time.Second) { |