tools/dashboard: support THREADCOUNT=0

This commit is contained in:
MilhouseVH 2019-08-08 21:53:27 +01:00
parent 2c2a752bb4
commit 538793e0e8

View File

@ -36,7 +36,11 @@ while [ : ]; do
sleep 1.0
done
tail -Fn+0 --pid=${pid} "${tcdir}/status" 2>/dev/null
if [ "${THREADCOUNT}" = "0" ]; then
tail -Fn+0 --pid=${pid} "${tcdir}/status" 2>/dev/null | grep -vE "STALLED|IDLE"
else
tail -Fn+0 --pid=${pid} "${tcdir}/status" 2>/dev/null
fi
echo
done