Works as intended for me on Intel Pentium and Xeons with FreeBSD.
Feature request: also show frequencies (min, max, current).
Both OpenBSD and FreeBSD’ sysctl(3) interface lack mib code to get frequencies. CPUID instruction can’t take effect. So I need to consider other methods, thanks for your feedback!
Ran on macOS just to see what happens:
Byte Order: Little Endian
Total CPU(s): 4
Model name: MacBookPro11,1
I appreciate graceful degradation!
I update the code, so it can run on macOS now:-). When you have time, you can try it, thanks!