[host] app: send CPU socket count information

This commit is contained in:
Quantum authored and Geoffrey McRae committed 2022-01-07 21:03:20 +11:00
1 parent 2834c7d95b
commit bf059a6eda
1 file changed
+5 -4
+5 -4
View File
@@ -612,11 +612,12 @@ static bool newKVMFRData(KVMFRUserData * dst)
if (!model)
return false;
int cpus, cores;
if (lgCPUInfo(model, 1024, &cpus, &cores, NULL))
int cpus, cores, sockets;
if (lgCPUInfo(model, 1024, &cpus, &cores, &sockets))
{
vmInfo->cpus = cpus;
vmInfo->cores = cores;
vmInfo->cpus = cpus;
vmInfo->cores = cores;
vmInfo->sockets = sockets;
const int modelLen = strlen(model) + 1;
record->size += modelLen;
dst->used += modelLen;