mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.96] Tracking issue #44
This commit is contained in:
@@ -20,6 +20,7 @@ int get_ncores_from_cpuinfo() {
|
||||
// 0-271
|
||||
// 0-5
|
||||
// 0-7
|
||||
/*
|
||||
int filelen;
|
||||
char* buf;
|
||||
if((buf = read_file(_PATH_CPUS_PRESENT, &filelen)) == NULL) {
|
||||
@@ -42,9 +43,9 @@ int get_ncores_from_cpuinfo() {
|
||||
return UNKNOWN;
|
||||
}
|
||||
|
||||
free(buf);
|
||||
free(buf);*/
|
||||
|
||||
return ncores;
|
||||
return 1;
|
||||
}
|
||||
|
||||
long parse_cpuinfo_field(char* buf, char* field_str, int field_base) {
|
||||
|
||||
Reference in New Issue
Block a user