Made _lp_cpu_load more consistent under OpenBSD

This commit is contained in:
Kim Lidström 2013-07-01 14:01:16 +02:00
parent 8624a4f6c6
commit 2f2f79f9d6

View File

@ -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)