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]"