From 08919916dc40e5cc41c6126328bed0dabe5ae7fd Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Fri, 9 Feb 2024 08:29:21 +0000 Subject: [PATCH] [v1.05] Always print manufacturing process in nanometers (this indirectly fixes a bug of processes in micrometers being incorrectly reported by 10x --- src/ppc/uarch.c | 3 --- src/x86/uarch.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/ppc/uarch.c b/src/ppc/uarch.c index 32354e1..abaacf0 100644 --- a/src/ppc/uarch.c +++ b/src/ppc/uarch.c @@ -280,9 +280,6 @@ char* get_str_process(struct cpuInfo* cpu) { if(process == UNK) { snprintf(str, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN); } - else if(process > 100) { - sprintf(str, "%.2fum", (double)process/100); - } else if(process > 0){ sprintf(str, "%dnm", process); } diff --git a/src/x86/uarch.c b/src/x86/uarch.c index 3c8644f..3d19640 100644 --- a/src/x86/uarch.c +++ b/src/x86/uarch.c @@ -498,9 +498,6 @@ char* get_str_process(struct cpuInfo* cpu) { if(process == UNK) { snprintf(str, strlen(STRING_UNKNOWN)+1, STRING_UNKNOWN); } - else if(process > 100) { - sprintf(str, "%.2fum", (double)process/100); - } else if(process > 0){ sprintf(str, "%dnm", process); }