Added support for looping and other enhancements.

This commit is contained in:
Alexander Barton 2004-09-04 14:23:09 +00:00
parent 9ddb934784
commit 18eb92a72b
1 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@
# (at your option) any later version. # (at your option) any later version.
# Please read the file COPYING, README and AUTHORS for more information. # Please read the file COPYING, README and AUTHORS for more information.
# #
# $Id: stress-server.sh,v 1.9 2004/09/04 13:58:31 alex Exp $ # $Id: stress-server.sh,v 1.10 2004/09/04 14:23:09 alex Exp $
# #
# detect source directory # detect source directory
@ -60,10 +60,10 @@ while [ ${loop} -lt $LOOPS ]; do
done done
if [ $LOOPS -gt 1 ]; then if [ $LOOPS -gt 1 ]; then
echo " loop $loop/$LOOPS: started $no clients." echo " loop $loop/$LOOPS: started $no clients."
echo -n " loop $loop/$LOOPS: waiting for clients to complete: " echo -n " loop $loop/$LOOPS: waiting for clients to complete: ."
else else
echo " started $no clients." echo " started $no clients."
echo -n " waiting for clients to complete: " echo -n " waiting for clients to complete: ."
fi fi
res=3 res=3
@ -74,7 +74,7 @@ while [ ${loop} -lt $LOOPS ]; do
[ $res -ne 99 ] && break [ $res -ne 99 ] && break
# there are still clients connected. Wait ... # there are still clients connected. Wait ...
sleep 1 sleep 3
echo -n "." echo -n "."
done done