style: correct output of CPU, MSR and RAM

This commit is contained in:
Martin Wimpress 2024-05-14 09:59:40 +01:00 committed by Martin Wimpress
parent cfa131fb9c
commit 124202511a
1 changed files with 2 additions and 2 deletions

View File

@ -287,7 +287,7 @@ function configure_cpu() {
SMP="-smp cores=${GUEST_CPU_LOGICAL_CORES},threads=${GUEST_CPU_THREADS},sockets=${HOST_CPU_SOCKETS}" SMP="-smp cores=${GUEST_CPU_LOGICAL_CORES},threads=${GUEST_CPU_THREADS},sockets=${HOST_CPU_SOCKETS}"
echo " - CPU: ${HOST_CPU_MODEL}" echo " - CPU: ${HOST_CPU_MODEL}"
echo -n " - CPU VM: ${HOST_CPU_SOCKETS} Socket(s), ${GUEST_CPU_LOGICAL_CORES} Core(s), ${GUEST_CPU_THREADS} Thread(s)" echo " - CPU VM: ${HOST_CPU_SOCKETS} Socket(s), ${GUEST_CPU_LOGICAL_CORES} Core(s), ${GUEST_CPU_THREADS} Thread(s)"
if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ] || [ "${guest_os}" == "windows-server" ]; then if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ] || [ "${guest_os}" == "windows-server" ]; then
# Display MSRs alert if the guest is macOS or windows # Display MSRs alert if the guest is macOS or windows
@ -313,7 +313,7 @@ configure_ram() {
else else
RAM_VM="${ram}" RAM_VM="${ram}"
fi fi
echo ", ${RAM_VM} RAM" echo " - RAM VM: ${RAM_VM} RAM"
if [ "${guest_os}" == "windows" ] || [ "${guest_os}" == "windows-server" ]; then if [ "${guest_os}" == "windows" ] || [ "${guest_os}" == "windows-server" ]; then
if [ "${RAM_VM//G/}" -lt 4 ]; then if [ "${RAM_VM//G/}" -lt 4 ]; then