mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-25 23:13:39 +00:00
[host] app: send CPU socket count information
This commit is contained in:
parent
2834c7d95b
commit
bf059a6eda
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user