Commit 8e7b6fea authored by gerd's avatar gerd

fixes for BSD systems


git-svn-id: https://gps.dynxs.de/private/svn/app-plasma/trunk@626 55289a75-7b90-4627-9e07-ffb4263930b2
parent 430964cb
......@@ -8,7 +8,7 @@ case `uname` in
# = number of cores * number of threads per core
uname -X | grep "NumCPU" | awk '{ print $3 }' ;;
FreeBSD|NetBSD|OpenBSD|Darwin)
sysctl hw.ncpu ;;
sysctl -n hw.ncpu ;;
AIX)
LC_ALL=C bindprocessor -q | sed -e 's/The available processors are://' | wc -w ;;
*)
......
......@@ -9,13 +9,13 @@ case `uname` in
AIX)
lsattr -E -l mem0 | tail -1 | awk '{print $2*1024*1024}' ;;
FreeBSD)
sysctl hw.realmem ;;
sysctl -n hw.realmem ;;
NetBSD)
sysctl hw.physmem64 ;;
sysctl -n hw.physmem64 ;;
OpenBSD)
sysctl hw.physmem ;;
sysctl -n hw.physmem ;;
Darwin)
sysctl hw.memsize ;;
sysctl -n hw.memsize ;;
# Also looked for a HP-UX solution, but seems to be difficult to
# find out as non-root user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment