Merge branch 'loadavg-uptime-freebsd' into master, closes #293

This commit is contained in:
Gregory Pakosz 2020-09-13 14:19:10 +02:00
commit 0cdd643d6d
1 changed files with 2 additions and 2 deletions

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)
# ;; # ;;
@ -656,7 +656,7 @@ run -b '[ -z "#{window_active}" ] && [ -z "#{version}" ] && tmux set display-tim
# #
# _loadavg() { # _loadavg() {
# case "$_uname_s" in # case "$_uname_s" in
# *Darwin*) # *Darwin*|*FreeBSD*)
# tmux set -g @loadavg "$(sysctl -q -n vm.loadavg | cut -d' ' -f2)" # tmux set -g @loadavg "$(sysctl -q -n vm.loadavg | cut -d' ' -f2)"
# ;; # ;;
# *Linux*|*CYGWIN*) # *Linux*|*CYGWIN*)