mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-10 16:30:50 +00:00
uptime: bug fix
This commit is contained in:
1 parent
ee6e1bd390
commit
ca4004de90
1 file changed
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user