[host] app: send CPU socket count information

This commit is contained in:
Quantum 2022-01-07 03:21:07 -05:00 committed by Geoffrey McRae
parent 2834c7d95b
commit bf059a6eda

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;