Skip to content

Commit 26d02bd

Browse files
authored
Improve QPS values argument processing (#34)
Refactor QPS value handling to join and split arguments.
1 parent f288c5b commit 26d02bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sharegpt/run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ KEY=$3
1515

1616
# If QPS values are provided, use them; otherwise use default
1717
if [[ $# -gt 3 ]]; then
18-
QPS_VALUES=("${@:4}")
18+
# Join all remaining arguments and split by spaces
19+
all_qps="${*:4}"
20+
IFS=' ' read -ra QPS_VALUES <<< "$all_qps"
1921
else
2022
QPS_VALUES=(1.34) # Default QPS value
2123
fi

0 commit comments

Comments
 (0)