Uptime [IRIX]: Use AIX method

This commit is contained in:
Muhammad Herdiansyah 2017-05-08 17:59:48 +07:00
parent e96d0e4cf6
commit a3af0a3f3e

View file

@ -371,7 +371,7 @@ get_uptime() {
seconds="${seconds/.*}"
;;
"AIX")
"AIX" | "IRIX")
t="$(LC_ALL=POSIX ps -o etime= -p 1)"
d="0" h="0"
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac