diff options
author | Grinberg Moti <mg877n@att.com> | 2017-02-23 16:23:14 +0200 |
---|---|---|
committer | Grinberg Moti <mg877n@att.com> | 2017-02-23 16:23:14 +0200 |
commit | 3cac1991249c9e1aed7a7bb3843653fb10dcf666 (patch) | |
tree | 0b9780e07ed6890966a26bf6132a754516028859 /sdc-os-chef/scripts | |
parent | cd6eeaa246bbb9aac6a344751d16022683aaa0c2 (diff) |
support stat less than 1G
Change-Id: I0a1fcfd5e545adee98a8d94ea3fbcd4ea8c7c063
Signed-off-by: Grinberg Moti <mg877n@att.com>
Diffstat (limited to 'sdc-os-chef/scripts')
-rw-r--r-- | sdc-os-chef/scripts/docker_stats.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdc-os-chef/scripts/docker_stats.sh b/sdc-os-chef/scripts/docker_stats.sh index 0047fe4df0..1759569b63 100644 --- a/sdc-os-chef/scripts/docker_stats.sh +++ b/sdc-os-chef/scripts/docker_stats.sh @@ -30,6 +30,10 @@ grep -v "^\-" ${FILE} |grep -v ^CONT| awk 'BEGIN { 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 |