Fix uptime path for MacOS
This commit is contained in:
parent
efbd11f3a9
commit
2e3b6f66fa
@ -5,7 +5,7 @@ function load_average {
|
|||||||
if [ -f '/proc/loadavg' ]; then
|
if [ -f '/proc/loadavg' ]; then
|
||||||
LA=`cut -d\ -f1 < /proc/loadavg`
|
LA=`cut -d\ -f1 < /proc/loadavg`
|
||||||
else
|
else
|
||||||
if [ -f '/bin/uptime' ]; then
|
if [ -f '/usr/bin/uptime' ]; then
|
||||||
UPTIME='/bin/uptime'
|
UPTIME='/bin/uptime'
|
||||||
elif [ -f '/usr/bsd/uptime' ]; then
|
elif [ -f '/usr/bsd/uptime' ]; then
|
||||||
UPTIME='/usr/bsd/uptime'
|
UPTIME='/usr/bsd/uptime'
|
||||||
|
Loading…
Reference in New Issue
Block a user