From 3cac1991249c9e1aed7a7bb3843653fb10dcf666 Mon Sep 17 00:00:00 2001 From: Grinberg Moti Date: Thu, 23 Feb 2017 16:23:14 +0200 Subject: support stat less than 1G Change-Id: I0a1fcfd5e545adee98a8d94ea3fbcd4ea8c7c063 Signed-off-by: Grinberg Moti --- sdc-os-chef/scripts/docker_stats.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sdc-os-chef') 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 -- cgit 1.2.3-korg