Skip to content
Snippets Groups Projects
Commit 496371b8 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

limit activity output

parent 2704a6fd
No related branches found
No related tags found
1 merge request!976010 check pqsql
......@@ -232,7 +232,11 @@ case "${sMode}" in
typeset -i iQOther; iQOther=$iQTotal-$iQActive-$iQIdle-$iQFastpath
descr="Running total: $iQTotal ... active: $iQActive idle: $iQIdle fastpath: $iQFastpath other: $iQOther"
out=$( grep "^.[a-z]" <<< "${_out}" | cut -c 1-150 | tr '|' ':' )
typeset -i iMax; iMax=20
out=$( grep "^.[a-z]" <<< "${_out}" | cut -c 1-150 | tr '|' ':' | head -${iMax} )
if [ ${iQTotal} -gt ${iMax} ]; then
out+="${NL}(showing ${iMax} of ${iQTotal} lines)${NL}"
fi
ph.perfadd "running-total" "${iQTotal}"
ph.perfadd "running-active" "${iQActive}"
ph.perfadd "running-idle" "${iQIdle}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment