From b8cc61dfd74f4236aaf59b461be0f861c08124b8 Mon Sep 17 00:00:00 2001 From: Richard Nelson Date: Fri, 17 Apr 2015 14:21:08 -0500 Subject: Added output of processing builds to status page for l-b-cgi frontend. --- frontend/cgi/live-build-status-cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'frontend') diff --git a/frontend/cgi/live-build-status-cgi b/frontend/cgi/live-build-status-cgi index 80ea39812..8af58572a 100755 --- a/frontend/cgi/live-build-status-cgi +++ b/frontend/cgi/live-build-status-cgi @@ -70,6 +70,9 @@ else # Getting number of builds pending. _QUEUENUM=$(ls "${_TEMPDIR}"/*.build | wc -l) + # Getting number of builds processing. + _PNUM=$(ls "${_TEMPDIR}"/*/ | wc -l) + # Find the build if exists and populate status html else respond no build. #echo "${QUERY_STRING}" if [ -f "${_TEMPDIR}"/"${_CGI_BUILD}".build ] @@ -103,6 +106,7 @@ else -e "s/EMAIL/${_EMAIL}/" \ -e "s/STATUS/${_STATUS}/" \ -e "s/QUEUENUM/${_QUEUENUM}/" \ + -e "s/PNUM/${_PNUM}/" \ -e "s/LB_BINARY_IMAGES/${LB_BINARY_IMAGES}/" \ -e "s/LB_DISTRIBUTION/${LB_DISTRIBUTION}/" \ -e "s#_LB_CONFIG#${_LB_CONFIG}#" \ -- cgit v1.2.3