mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v0.99][X86] Improve CPU abbreviate code
This commit is contained in:
@@ -34,9 +34,11 @@ int64_t get_freq(struct frequency* freq) {
|
||||
|
||||
#if defined(ARCH_X86) || defined(ARCH_PPC)
|
||||
char* get_str_cpu_name(struct cpuInfo* cpu, bool fcpuname) {
|
||||
if(cpu->cpu_vendor == CPU_VENDOR_INTEL && !fcpuname) {
|
||||
abbreviate_intel_cpu_name(&cpu->cpu_name);
|
||||
#ifdef ARCH_X86
|
||||
if(!fcpuname) {
|
||||
return get_str_cpu_name_abbreviated(cpu);
|
||||
}
|
||||
#endif
|
||||
return cpu->cpu_name;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user