mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
Add FreeBSD load average
This commit is contained in:
parent
6f577c0610
commit
b8760befc7
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ __load_average_detail() {
|
|||
__load_average() {
|
||||
if [ -r "/proc/loadavg" ]; then
|
||||
read one five fifteen other < /proc/loadavg
|
||||
elif [ $(uname) = "FreeBSD" ]; then
|
||||
one=$(uptime | sed -En 's:.*averages\: ([[:digit:]]+\.[[:digit:]]+),.*:\1:p')
|
||||
else
|
||||
one=$(uptime | sed -e "s/.*://" | awk '{print $1}')
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue