Commits

Jesse Read committed 9330b55

Adjusted tmux-mem-cpu-load with required arguments.

See https://gist.github.com/DarthNerdus/5303901 for my version of the tmux-mem-cpu-load script

Comments (0)

Files changed (1)

segments/tmux_mem_cpu_load.sh

 # Print out Memory, cpu and load using https://github.com/thewtex/tmux-mem-cpu-load
 
 run_segment() {
-	type tmux-mem-cpu-load >/dev/null 2>&1
+	type tmux-mem-cpu-load 0 0 >/dev/null 2>&1
 	if [ "$?" -ne 0 ]; then
 		return
 	fi
 
-	stats=$(tmux-mem-cpu-load)
+	stats=$(tmux-mem-cpu-load 2 0)
 	if [ -n "$stats" ]; then
 		echo "$stats";
 	fi