mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 10:20:28 +00:00
Added support for looping and other enhancements.
This commit is contained in:
parent
9ddb934784
commit
18eb92a72b
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user