mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.89][ARM][BUGFIX] Fix obscure bug where cpufetch failed if cpuinfo did not start with "processor" string
This commit is contained in:
@@ -73,7 +73,7 @@ uint32_t get_midr_from_cpuinfo(uint32_t core, bool* success) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* tmp = buf;
|
char* tmp = strstr(buf, CPUINFO_CPU_STRING);
|
||||||
uint32_t current_core = 0;
|
uint32_t current_core = 0;
|
||||||
while(core != current_core && tmp != NULL) {
|
while(core != current_core && tmp != NULL) {
|
||||||
tmp++;
|
tmp++;
|
||||||
|
|||||||
Reference in New Issue
Block a user