commit | 3cac1991249c9e1aed7a7bb3843653fb10dcf666 | [log] [tgz] |
---|---|---|
author | Grinberg Moti <mg877n@att.com> | Thu Feb 23 16:23:14 2017 +0200 |
committer | Grinberg Moti <mg877n@att.com> | Thu Feb 23 16:23:14 2017 +0200 |
tree | 0b9780e07ed6890966a26bf6132a754516028859 | |
parent | cd6eeaa246bbb9aac6a344751d16022683aaa0c2 [diff] [blame] |
support stat less than 1G Change-Id: I0a1fcfd5e545adee98a8d94ea3fbcd4ea8c7c063 Signed-off-by: Grinberg Moti <mg877n@att.com>
diff --git a/sdc-os-chef/scripts/docker_stats.sh b/sdc-os-chef/scripts/docker_stats.sh index 0047fe4..1759569 100644 --- a/sdc-os-chef/scripts/docker_stats.sh +++ b/sdc-os-chef/scripts/docker_stats.sh
@@ -30,6 +30,10 @@ d=$6"-"$2"-"substr("00",0,2-length($3))$3"-"substr($4,0,5) next } +/MiB/ { + print $1" "d" "$3/1024" "$8 + next +} /GiB/ { print $1" "d" "$3" "$8 next