Fix zsh parameter expansion for hosts requiring 'uptime'
This commit is contained in:
parent
7169598522
commit
e4e302afab
@ -12,7 +12,7 @@ function load_average {
|
|||||||
else
|
else
|
||||||
UPTIME='/usr/ucb/uptime'
|
UPTIME='/usr/ucb/uptime'
|
||||||
fi
|
fi
|
||||||
LA=${${UPTIME[(w)-3]}%,}
|
LA=${$($UPTIME)[-3]}
|
||||||
fi
|
fi
|
||||||
printf "%05.2f\n" ${LA}
|
printf "%05.2f\n" ${LA}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user