You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I kill a process I normally am killing a frozen Chrome tab using: kill chrome and then I scroll down to see the process, that is like at 99%. Adding this sort allows me to easily kill the process hog.
I changed: origional processes = ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$.split("\n")
updated processes = ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$ | sort -nr -k2.split("\n")
by adding | sort -nr -k2 it will sort column 2 reverse numerical.
The text was updated successfully, but these errors were encountered:
Whenever I kill a process I normally am killing a frozen Chrome tab using: kill chrome and then I scroll down to see the process, that is like at 99%. Adding this sort allows me to easily kill the process hog.
I changed:
origional processes =
ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$
.split("\n")updated processes =
ps -A -o pid -o %cpu -o comm | grep -i [^/]*#{Regexp.quote(theQuery)}[^/]*$ | sort -nr -k2
.split("\n")by adding | sort -nr -k2 it will sort column 2 reverse numerical.
The text was updated successfully, but these errors were encountered: