summaryrefslogtreecommitdiff
path: root/experiment/scripts/benchmark.sh
diff options
context:
space:
mode:
Diffstat (limited to 'experiment/scripts/benchmark.sh')
-rwxr-xr-xexperiment/scripts/benchmark.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/experiment/scripts/benchmark.sh b/experiment/scripts/benchmark.sh
index f5a2f5a..1861aeb 100755
--- a/experiment/scripts/benchmark.sh
+++ b/experiment/scripts/benchmark.sh
@@ -27,7 +27,9 @@ function start_wallet_bench() {
LOG_LEVEL=INFO
fi
- NUM_DEPOSITS=$(($RANDOM % 21))
+ if [[ "${RAND_DEPOSITS}" == "true" ]]; then
+ NUM_DEPOSITS=$(($RANDOM % ${NUM_DEPOSITS} + 1))
+ fi
if [[ "${WALLET_BENCHMARK}" == bench3 ]] && \
[[ "${WALLET_MERCHANT_SELECTION}" =~ zipf|rand ]]; then