uptime: bug fix
This commit is contained in:
parent
ee6e1bd390
commit
ca4004de90
2
pfetch
2
pfetch
|
@ -349,7 +349,7 @@ get_uptime() {
|
||||||
IFS=. read -r s _ < /proc/uptime
|
IFS=. read -r s _ < /proc/uptime
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin*|*BSD*)
|
Darwin*|*BSD*|DragonFly*)
|
||||||
s=$(sysctl -n kern.boottime)
|
s=$(sysctl -n kern.boottime)
|
||||||
|
|
||||||
# Extract the uptime in seconds from the following output:
|
# Extract the uptime in seconds from the following output:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user