Set executable permission on scripts/*
[sdc.git] / sdc-os-chef / scripts / docker_stats.sh
old mode 100644 (file)
new mode 100755 (executable)
index 9258b34..1759569
@@ -30,7 +30,12 @@ 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
 }' > `echo ${FILE}|awk -F"." '{ print $1".csv"}'`
+