fix(tmux): macos load avg
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2cb6ab6f37
commit
bffea54717
@ -5,7 +5,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
uptime | grep -o "[0-9]\+\.[0-9]\+ [0-9]\+\.[0-9]\+ [0-9]\+\.[0-9]\+"
|
uptime | tr -d ',' | grep -o "[0-9]\+\.[0-9]\+ [0-9]\+\.[0-9]\+ [0-9]\+\.[0-9]\+"
|
||||||
else # Linux
|
else # Linux
|
||||||
cut -d " " -f 1-3 /proc/loadavg
|
cut -d " " -f 1-3 /proc/loadavg
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user