已开启
fix: change the method of obtaining the number of CPUs #130
AtomGit-Bot创建于 2025年3月31日
fix: change the method of obtaining the number of CPUs #130
已开启
AtomGit-Bot创建于 2025年3月31日
refs/pull/130/head合入到master
1 个文件变更+1-1
@@ -61,7 +61,7 @@ interruptbind()
61interruptbind=$(interruptbind)61interruptbind=$(interruptbind)
62num=$(interruptbind|wc -w)62num=$(interruptbind|wc -w)
63echo $num63echo $num
64-cores=`lscpu | grep "CPU(s)" | head -n 1 | awk -F ' ' '{print $2}'`64+cores=$(nproc)
65networkname()65networkname()
66{66{
67 if [ $arch = "aarch64" ];then echo "enp4s0"; else echo "enp4s0"; fi67 if [ $arch = "aarch64" ];then echo "enp4s0"; else echo "enp4s0"; fi