mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-15 04:28:13 +00:00
[all] refactor cpuInfo function names
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores,
|
||||
bool cpuInfo_get(char * model, size_t modelSize, int * procs, int * cores,
|
||||
int * sockets)
|
||||
{
|
||||
FILE * cpuinfo = fopen("/proc/cpuinfo", "r");
|
||||
|
||||
@@ -108,7 +108,7 @@ static bool getCoreCount(int * cores, int * procs, int * sockets)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool lgCPUInfo(char * model, size_t modelSize, int * procs, int * cores,
|
||||
bool cpuInfo_get(char * model, size_t modelSize, int * procs, int * cores,
|
||||
int * sockets)
|
||||
{
|
||||
return getCPUModel(model, modelSize) && getCoreCount(cores, procs, sockets);
|
||||
|
||||
Reference in New Issue
Block a user