mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-28 19:02:02 +00:00
[common] cpuinfo: add sockets to interface
This commit is contained in:
@@ -95,7 +95,11 @@ static bool getCoreCount(int * cores, int * procs)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores)
|
||||
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores,
|
||||
int * sockets)
|
||||
{
|
||||
if (sockets)
|
||||
*sockets = 1;
|
||||
|
||||
return getCPUModel(model, modelSize) && getCoreCount(cores, procs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user