Fix uptime path for MacOS

This commit is contained in:
Orien Vandenbergh 2019-07-22 13:57:40 -06:00
parent efbd11f3a9
commit 2e3b6f66fa

View File

@ -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'