Closed joe-at-startupmedia closed 2 months ago
The commit above randomizes the pid list. Not the best solution but it works. Ideally it should spawn n top processes (where n = managed processes / 20) and merge the results. This however would remove the ability to proxy column sorting to the linux top command and would instead have to be handled natively in the code. Will revisit later if necessary.
That's because the linux top command only allows 20 pids. A work around could be to randomize the pid list on every iteration.