mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-24 23:40:39 +01:00
[v0.96] Do not consider missing frequency file as a bug
This commit is contained in:
@@ -32,17 +32,11 @@ long get_freq_from_file(char* path, bool hv_present) {
|
|||||||
int filelen;
|
int filelen;
|
||||||
char* buf;
|
char* buf;
|
||||||
if((buf = read_file(path, &filelen)) == NULL) {
|
if((buf = read_file(path, &filelen)) == NULL) {
|
||||||
#ifdef ARCH_X86
|
if(hv_present)
|
||||||
if(hv_present) {
|
printWarn("Could not open '%s' (HV is present)", path);
|
||||||
printWarn("Could not open '%s'", path);
|
else
|
||||||
}
|
printWarn("Could not open '%s'", path);
|
||||||
else {
|
|
||||||
perror("open");
|
|
||||||
printBug("Could not open '%s'", path);
|
|
||||||
}
|
|
||||||
#elif ARCH_ARM
|
|
||||||
printWarn("Could not open '%s'", path);
|
|
||||||
#endif
|
|
||||||
return UNKNOWN_FREQ;
|
return UNKNOWN_FREQ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user