Commit 64d365c4 authored by Fangyi Zhou's avatar Fangyi Zhou
Browse files

Merge branch 'lab-fullness' into 'master'

Add lab fullness percentage

See merge request !24
parents 4f9b3a51 02ab1238
......@@ -137,6 +137,10 @@ else
cat $outputFile | sed -n -E "s/([^ ]+\b) (.+?\b[ ]?)+ ($curr) (.+)$/\4\t\2\t(\1)/gp" | column -t -s $'\t'
fi
echo
UNOCCUPIED_COUNT=$(grep -r "^\w\+$" $outputFile | wc -l | cut -d ' ' -f 1)
echo "Estimated lab fullness : $((100 - 100 * ${UNOCCUPIED_COUNT} / ${HOST_COUNT}))%"
popd > /dev/null
if [ "$keep" = false ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment