simple fix for uptime to work in FreeBSD
This commit is contained in:
parent
01c91ba523
commit
c949dad3a1
|
@ -599,7 +599,7 @@ run -b '[ -z "#{session_id}" ] && [ -z "#{version}" ] && tmux set display-time 3
|
||||||
#
|
#
|
||||||
# _uptime() {
|
# _uptime() {
|
||||||
# case $(uname -s) in
|
# case $(uname -s) in
|
||||||
# *Darwin*)
|
# *Darwin*|*FreeBSD*)
|
||||||
# boot=$(sysctl -q -n kern.boottime | awk -F'[ ,:]+' '{ print $4 }')
|
# boot=$(sysctl -q -n kern.boottime | awk -F'[ ,:]+' '{ print $4 }')
|
||||||
# now=$(date +%s)
|
# now=$(date +%s)
|
||||||
# ;;
|
# ;;
|
||||||
|
|
Loading…
Reference in a new issue