Reduce the output of command to reduce processing
Opened this issue · 0 comments
hepabolu commented
As far as I can tell your command outputs multiple lines of the 'top' command, while you only process the line that starts with 'CPU usage'.
Wouldn't it be better to modify the command to "top -u -l -1 | grep 'CPU usage'"
and process only that line?