Made _lp_cpu_load more consistent under OpenBSD
This commit is contained in:
parent
8624a4f6c6
commit
2f2f79f9d6
@ -125,7 +125,9 @@ case "$LP_OS" in
|
||||
;;
|
||||
OpenBSD)
|
||||
_lp_cpu_load() {
|
||||
echo "$(LANG=C sysctl -n vm.loadavg | awk '{print $2}')"
|
||||
local bol load eol
|
||||
read one two three <<< `sysctl -n vm.loadavg`
|
||||
echo "$load"
|
||||
}
|
||||
;;
|
||||
SunOS)
|
||||
|
Loading…
Reference in New Issue
Block a user