Uptime [IRIX]: Use AIX method
This commit is contained in:
parent
e96d0e4cf6
commit
a3af0a3f3e
2
neofetch
2
neofetch
|
@ -371,7 +371,7 @@ get_uptime() {
|
||||||
seconds="${seconds/.*}"
|
seconds="${seconds/.*}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"AIX")
|
"AIX" | "IRIX")
|
||||||
t="$(LC_ALL=POSIX ps -o etime= -p 1)"
|
t="$(LC_ALL=POSIX ps -o etime= -p 1)"
|
||||||
d="0" h="0"
|
d="0" h="0"
|
||||||
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
|
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
|
||||||
|
|
Reference in New Issue