changeset 116:0b8a67c8aa66

Fix rate limiter to actually rate limit.
author Rob Landley <rob@landley.net>
date Tue, 03 May 2011 11:52:15 -0500
parents 0595c16ed26f
children 7d33366e569e
files make/functions.sh
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/make/functions.sh	Mon May 02 14:22:10 2011 -0500
+++ b/make/functions.sh	Tue May 03 11:52:15 2011 -0500
@@ -76,10 +76,10 @@
       echo "Converting $i"
       xmlto --skip-validation xhtml-nochunks $i -o xhtml-nochunks &
       # Rate limit spawn to number of CPUS + 1
-      if [ $(pgrep -P$CHILD | wc -w) -gt $CPUS ]
-      then
+      while [ $(pgrep -P$CHILD | wc -w) -gt $CPUS ]
+      do
         sleep 1
-      fi
+      done
     done
     wait
   )