diff --git a/jeannie b/jeannie index bc14f8b..2dfff26 100755 --- a/jeannie +++ b/jeannie @@ -4444,12 +4444,12 @@ pimox_worker_count_default() { if [[ -s "${spec_file}" ]]; then count="$(awk -F'\t' -v key_prefix="${worker_key_prefix}" -v node_prefix="${worker_node_prefix}-" ' $1 ~ "^" key_prefix "[0-9]+$" { - index = substr($1, length(key_prefix) + 1) + 0 - if (index > max) max = index + worker_index = substr($1, length(key_prefix) + 1) + 0 + if (worker_index > max) max = worker_index } $4 ~ "^" node_prefix "[0-9]+$" { - index = substr($4, length(node_prefix) + 1) + 0 - if (index > max) max = index + worker_index = substr($4, length(node_prefix) + 1) + 0 + if (worker_index > max) max = worker_index } END { print max + 0 } ' "${spec_file}")"