mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.98][Refactoring] Use int for peak performance, which makes code cleaner
This commit is contained in:
@@ -115,6 +115,7 @@ struct cpuInfo {
|
||||
struct cache* cach;
|
||||
struct topology* topo;
|
||||
struct features* feat;
|
||||
int64_t peak_performance;
|
||||
|
||||
#if defined(ARCH_X86) || defined(ARCH_PPC)
|
||||
// CPU name from model
|
||||
@@ -161,7 +162,7 @@ char* get_str_l1d(struct cache* cach);
|
||||
char* get_str_l2(struct cache* cach);
|
||||
char* get_str_l3(struct cache* cach);
|
||||
char* get_str_freq(struct frequency* freq);
|
||||
char* get_str_peak_performance(double flops, bool valid_pp);
|
||||
char* get_str_peak_performance(int64_t flops);
|
||||
|
||||
void init_topology_struct(struct topology* topo, struct cache* cach);
|
||||
void init_cache_struct(struct cache* cach);
|
||||
|
||||
Reference in New Issue
Block a user