undo commit a00de370c58fe2c18a49944821e113617caff1c4, let Darwin be specific again
This commit is contained in:
parent
bf85104290
commit
93b701a637
@ -80,7 +80,7 @@ OS="Linux"
|
||||
case $(uname) in
|
||||
"Linux" ) OS="Linux" ;;
|
||||
"FreeBSD") OS="FreeBSD" ;;
|
||||
"Darwin") OS="FreeBSD" ;;
|
||||
"Darwin") OS="Darwin" ;;
|
||||
"DragonFly") OS="FreeBSD" ;;
|
||||
"SunOS") OS="SunOS" ;;
|
||||
esac
|
||||
@ -167,6 +167,11 @@ __cpunum_FreeBSD()
|
||||
sysctl -n hw.ncpu
|
||||
}
|
||||
|
||||
__cpunum_Darwin()
|
||||
{
|
||||
__cpunum_FreeBSD
|
||||
}
|
||||
|
||||
__cpunum_SunOS()
|
||||
{
|
||||
kstat -m cpu_info | grep "module: cpu_info" | wc -l
|
||||
@ -189,6 +194,11 @@ __load_FreeBSD()
|
||||
echo -n "$load"
|
||||
}
|
||||
|
||||
__load_Darwin()
|
||||
{
|
||||
__load_FreeBSD
|
||||
}
|
||||
|
||||
__load_SunOS()
|
||||
{
|
||||
load=$(LANG=C uptime | awk '{print $10}'| sed -e 's/,//')
|
||||
|
Loading…
x
Reference in New Issue
Block a user