Ensure solana commands are added to idle clients (#6513)

This commit is contained in:
Justin Starry 2019-10-23 11:15:00 -04:00 committed by GitHub
parent e462a7d1d5
commit 6829b8a6fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -746,11 +746,13 @@ deploy() {
# have caught up to the bootstrap leader yet
SECONDS=0
for ((i=0; i < "$numClients" && i < $((numBenchTpsClients + numBenchExchangeClients)); i++)) do
for ((i=0; i < "$numClients" && i < "$numClientsRequested"; i++)) do
if [[ $i -lt "$numBenchTpsClients" ]]; then
startClient "${clientIpList[$i]}" "solana-bench-tps" "$i"
else
elif [[ $i -lt $((numBenchTpsClients + numBenchExchangeClients)) ]]; then
startClient "${clientIpList[$i]}" "solana-bench-exchange" $((i-numBenchTpsClients))
else
startClient "${clientIpList[$i]}" "idle"
fi
done
clientDeployTime=$SECONDS