fix(monitoring): drop unbound LADDER_RANGES in GOA ladder
This commit is contained in:
parent
01900bab9a
commit
66815f81c2
3 changed files with 34 additions and 14 deletions
|
|
@ -207,8 +207,10 @@ LADDER_LIST=$(build_ladder)
|
|||
# shellcheck disable=SC2086
|
||||
set -- $LADDER_LIST
|
||||
if [ "$#" -gt "$LADDER_MAX_RUNGS" ]; then
|
||||
# shellcheck disable=SC2046
|
||||
set -- $(printf '%s\n' "$@" | head -n "$LADDER_MAX_RUNGS")
|
||||
fi
|
||||
LADDER_N=$#
|
||||
info "ladder plan" "$*"
|
||||
printf '%s\n' "$@" >"$SCRATCH/ladder-plan.txt"
|
||||
|
||||
|
|
@ -229,7 +231,14 @@ for AMT in "$@"; do
|
|||
|
||||
section "ladder · rung $rung $AMT"
|
||||
tag=$(printf '%s' "$AMT" | tr '.:' '__')
|
||||
range_note=$(printf '%s' "$LADDER_RANGES" | awk -v n="$rung" '{print $n}')
|
||||
# TSV "range" column: fixed pins at ends, random mids (no legacy LADDER_RANGES)
|
||||
if [ "$rung" -eq 1 ]; then
|
||||
range_note="pin:0"
|
||||
elif [ "$rung" -eq "$LADDER_N" ]; then
|
||||
range_note="pin:max"
|
||||
else
|
||||
range_note="random"
|
||||
fi
|
||||
t_rung=$(now_ms)
|
||||
ms_mint=0 ms_accept=0 ms_confirm=0 ms_settle=0
|
||||
note=""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue