manual tmux-mem-cpu-load, cleanup
This commit is contained in:
3
linux/bin/tmux-mem-cpu-load
Executable file
3
linux/bin/tmux-mem-cpu-load
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
top -bn1 | \
|
||||
awk -F'[ \t,]+' '/^top -/{u=$(NF-6)" "$(NF-5);l=$(NF-2)" "$(NF-1)" "$(NF)};/^MiB Mem/{printf "%d/%d MB %s %s",$8,$4,u,l;exit 0}'
|
||||
Reference in New Issue
Block a user