summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-02 13:42:29 +0200
committerErich Eckner <git@eckner.net>2017-06-02 13:42:29 +0200
commit491b88db9ef674ce212bb52bcf389860b37f413f (patch)
treead2ef429d0bc48b5b7f23fa131384208b4e71818 /bin/build-master-status
parent587773ab3a7df4c8a24296df2decd25c59e657b9 (diff)
downloadbuilder-491b88db9ef674ce212bb52bcf389860b37f413f.tar.xz
bin/build-master-status: more statistics
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 11f3957..62ffd9a 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -28,3 +28,6 @@ printf 'There are %d broken packages.\n' "${broken}"
if [ $[${broken}+${staging}] -ne 0 ]; then
LANG=C printf '%.1f%% of all packages are broken.\n' "$(bc <<< "scale=10; 100*${broken}/(${broken}+${staging})")"
fi
+if [ $[${staging}+${tasks}-${broken}] -ne 0 ]; then
+ LANG=C printf '%.1f%% of the planned work has been done.\n' "$(bc <<< "scale=10; 100*${staging}/(${staging}+${tasks}-${broken})")"
+fi