Uptime: Add support for HP-UX
This commit is contained in:
parent
e8bd2975e0
commit
68630a125e
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -363,7 +363,7 @@ get_uptime() {
|
||||||
seconds="${seconds/.*}"
|
seconds="${seconds/.*}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"AIX")
|
"AIX" | "HP-UX")
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue