mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
fixed the CPU checking code.
This commit is contained in:
parent
af7d059586
commit
55f514ad05
1 changed files with 7 additions and 2 deletions
|
@ -44,8 +44,13 @@ check_cpu () {
|
||||||
model_name=`sysctl -n hw.model`
|
model_name=`sysctl -n hw.model`
|
||||||
;;
|
;;
|
||||||
Darwin)
|
Darwin)
|
||||||
cpu_family=`uname -p`
|
cpu_family=`sysctl -n machdep.cpu.vendor`
|
||||||
model_name=`machine`
|
model_name=`sysctl -n machdep.cpu.brand_string`
|
||||||
|
if [ -z "$cpu_family" -o -z "$model_name" ]
|
||||||
|
then
|
||||||
|
cpu_family=`uname -p`
|
||||||
|
model_name=`machine`
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
cpu_family=`uname -m`;
|
cpu_family=`uname -m`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue