mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
Newlines are important
This commit is contained in:
parent
c0b86f63a9
commit
0dbb93b961
6 changed files with 7 additions and 7 deletions
|
@ -31,7 +31,7 @@ __uptime() {
|
|||
read u idle < /proc/uptime
|
||||
u=${u%.*}
|
||||
elif [ $(uname) = "FreeBSD" ]; then
|
||||
u=$( sysctl -n kern.boottime | sed -En 's:.*sec = ([[:digit:]]+),.*:\1:p' )
|
||||
u=$(sysctl -n kern.boottime | sed -En 's:.*sec = ([[:digit:]]+),.*:\1:p')
|
||||
u=$(($(date +%s) - $u))
|
||||
elif [ -x /usr/sbin/sysctl ]; then
|
||||
# MacOS support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue