1
0
Fork 0
mirror of synced 2024-12-22 06:41:07 -05:00

made #{uptime_xxx} work under FreeBSD

This commit is contained in:
Joachim Werner 2020-09-13 14:17:09 +02:00 committed by Gregory Pakosz
parent b4a5d06740
commit 39cc430268

View file

@ -622,7 +622,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# #
# _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)
# ;; # ;;