fix(tmux): macos load avg
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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…
Reference in New Issue