Skip to content

Commit

Permalink
quickemu fix nproc
Browse files Browse the repository at this point in the history
Better handling available cores
  • Loading branch information
zen0bit committed Oct 1, 2023
1 parent ca8023b commit 67686fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function vm_boot() {
echo "Quickemu ${VERSION} using ${QEMU} v${QEMU_VER_LONG}"
echo " - Host: ${LSB_DESCRIPTION} running ${KERNEL_NAME} ${KERNEL_VER} ${KERNEL_NODE}"

HOST_CPU_CORES=$(nproc --all)
HOST_CPU_CORES=$(nproc)
HOST_CPU_MODEL=$(lscpu | grep '^Model name:' | cut -d':' -f2 | sed 's/ //g')
HOST_CPU_SOCKETS=$(lscpu | grep -E 'Socket' | cut -d':' -f2 | sed 's/ //g')
HOST_CPU_VENDOR=$(lscpu | grep -E 'Vendor' | cut -d':' -f2 | sed 's/ //g')
Expand Down

0 comments on commit 67686fc

Please sign in to comment.