已开启
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
已开启
从refs/pull/130/head合入到master
共 1 个文件变更+1-1
| @@ -61,7 +61,7 @@ interruptbind() | |||
| 61 | interruptbind=$(interruptbind) | 61 | interruptbind=$(interruptbind) |
| 62 | num=$(interruptbind|wc -w) | 62 | num=$(interruptbind|wc -w) |
| 63 | echo $num | 63 | echo $num |
| 64 | -cores=`lscpu | grep "CPU(s)" | head -n 1 | awk -F ' ' '{print $2}'` | 64 | +cores=$(nproc) |
| 65 | networkname() | 65 | networkname() |
| 66 | { | 66 | { |
| 67 | if [ $arch = "aarch64" ];then echo "enp4s0"; else echo "enp4s0"; fi | 67 | if [ $arch = "aarch64" ];then echo "enp4s0"; else echo "enp4s0"; fi |