cloudpanel-io / cloudpanel-ce

1.28k stars 106 forks source link

Number of CPU Cores is incorrect in header #417

Closed TobiasCurth closed 9 months ago

TobiasCurth commented 9 months ago

CloudPanel version(s) affected

2.4.1

Description

In AdminArea in the header information the number of cpu cores shows "16". Correct is 8, as nproc shows.

How to reproduce

Clean install on Ubuntu 22.04 on Proxmoxx. Set to 8 cores.

nproc shows 8 CloudPanel shows 16

Possible Solution

No response

Additional Context

image image
cloudpanel-io commented 9 months ago

The following command is being executed by CloudPanel:

/usr/bin/sudo /bin/cat /proc/cpuinfo | /bin/grep processor | wc -l

It counts the number of processors (or CPU cores) present on the system.

TobiasCurth commented 9 months ago

Thanks, I switched from KVM processor to it's original name.

Before:

processor   : 0
model name  : Common KVM processor
processor   : 1
model name  : Common KVM processor
processor   : 2
model name  : Common KVM processor
processor   : 3
model name  : Common KVM processor
processor   : 4
model name  : Common KVM processor
processor   : 5
model name  : Common KVM processor
processor   : 6
model name  : Common KVM processor
processor   : 7
model name  : Common KVM processor

After:

processor   : 0
processor   : 1
processor   : 2
processor   : 3
processor   : 4
processor   : 5
processor   : 6
processor   : 7