[v1.05] Print a tilde in case the freq was measured (indicating that this value is an approximation)

This commit is contained in:
Dr-Noob
2024-07-08 08:23:56 +01:00
parent 65378aaed9
commit e0095c303d
6 changed files with 24 additions and 8 deletions

View File

@@ -923,6 +923,7 @@ struct cache* get_cache_info(struct cpuInfo* cpu) {
struct frequency* get_frequency_info(struct cpuInfo* cpu) {
struct frequency* freq = emalloc(sizeof(struct frequency));
freq->measured = false;
if(cpu->maxLevels < 0x00000016) {
#if defined (_WIN32) || defined (__APPLE__)
@@ -976,6 +977,7 @@ struct frequency* get_frequency_info(struct cpuInfo* cpu) {
printWarn("All previous methods failed, measuring CPU frequency");
// TODO: Support hybrid architectures
freq->max = measure_max_frequency(0);
freq->measured = true;
}
#endif