collectd: sqm_collect: optimise parent search
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 3 Oct 2021 10:23:36 +0000 (11:23 +0100)
committerKevin Darbyshire-Bryant <6500011+ldir-EDB0@users.noreply.github.com>
Wed, 6 Oct 2021 11:13:11 +0000 (12:13 +0100)
commit9db12bbaffd997fe3ba2959b7370b3a9b59401f6
tree10548575ad1f27d3c063dbbf8e404dd5e6e13db3
parent6c73457c09f838279b240bef59730cbff60ae799
collectd: sqm_collect: optimise parent search

There can be only 1 parent process ID, so as soon as we find it, print
it and exit - there's no point searching any of the following lines

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
utils/collectd/files/exec-scripts/sqm_collectd.sh