From 5f2e54f58a049c50e54b4f282bed000dec668376 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 16 May 2015 14:28:02 +0200 Subject: [PATCH] webbuild-cgi: small refining of rpmbuild processes detection --- webbuild/webbuild-cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 5ec405f..28cde90 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -396,7 +396,7 @@ if [ "$REQUEST" = "refresh" -o "$REQUEST" = "refreshjobs" ]; then # echo -n "
" u="$(uptime)" f="$(df / -k -h --output=avail,pcent|tail -n1)" - b=`ps ax|grep rpmbuild|grep spec|while read l; do basename "${l/.spec}"; done` + b=`ps ax|grep "rpmbuild .*\.spec$"|while read l; do basename "${l/.spec}"; done` echo -n "Load: ${u/*: } | Disk: $f | Now building: $b | " if [ "$STATE_JOBSSHOWALL" != "1" ]; then echo "My jobs: [Show all jobs]"