add diagnostic function
This commit is contained in:
parent
041391864a
commit
75fb0f2626
1 changed files with 3 additions and 0 deletions
3
home/private_dot_config/zsh/functions/top-cpu-user
Normal file
3
home/private_dot_config/zsh/functions/top-cpu-user
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
top -b -n 1 -u "$1" | awk 'NR>7 { sum += $9; } END { print sum; }'
|
Loading…
Reference in a new issue