Commit Graph

12 Commits

Author SHA1 Message Date
Dr-Noob
0725e9d876 Add --levels option 2020-06-22 13:17:00 +02:00
Dr-Noob
a2dab8129c Use standart types instead of int/long in specific files. This fixes a problem in Windows, were PP was not computed correctly. Compiling with C99 2020-06-22 12:47:14 +02:00
Dr-Noob
08ce1de122 Add fallback in Linux in case we cant get the freq from cpuid, using udev (welcome back, udev...) 2020-06-22 12:05:04 +02:00
Dr-Noob
10cf53479e Fix small bug in get_str_topology. Fix #15 2020-06-21 15:55:14 +02:00
Dr-Noob
ce4ecd7af4 Fix bug introduced when using stdbool instead of ints 2020-06-21 13:41:14 +02:00
Dr-Noob
1435978b37 Add release and debug targets in Makefile. Improve robustness by checking cache sizes and snprintf returns 2020-06-21 13:37:44 +02:00
Dr-Noob
525cf1a76f Get number of cores (Intel only) with cpuid. This removes sysconf dependency. This implementation breaks cpufetch in NUMA environments 2020-06-20 20:54:38 +02:00
Dr-Noob
6ad5f65c34 Improve error checking. Add partial support for verbose output 2020-06-20 19:21:07 +02:00
Dr-Noob
b81d611282 Fetch freq from cpuid, instead of asking Linux (using /proc). This finally removes udev dependency. However, the support of cpuid 0x16 is limited, so this may break cpufetch on some systems 2020-06-20 13:24:50 +02:00
Dr-Noob
04a2fef2a2 Fetch cache info from cpuid, instead of asking Linux (using /proc) 2020-06-20 12:15:59 +02:00
Dr-Noob
e766f38884 Big refactoring 2020-06-20 11:24:43 +02:00
Dr-Noob
9f55672aa2 Divide source code from other stuff 2018-06-23 13:04:42 +02:00