李通洲
90ea096ca3
macOS: don't keep variable matchDict
2023-10-07 15:51:05 +08:00
李通洲
767f99cffa
CPU (Linux): only try lscpu on Linux
...
Since `lscpu` is a program of `util-linux`
2023-09-27 15:11:05 +08:00
李通洲
7caa8d4618
CPU (Linux): try detecting CPU name using lscpu
...
Fix #567
2023-09-27 15:05:26 +08:00
李通洲
e4c1ec916b
FFstrbuf: change ffStrbufToUInt16 to more general function ffStrbufToUInt
2023-09-26 09:52:10 +08:00
李通洲
fe9fcd603b
CPU (Windows): fix possible memory errors
2023-09-08 10:11:57 +08:00
李通洲
d8b2151143
CPU (macOS): support Apple Silicon frequency detection
2023-09-08 10:11:56 +08:00
李通洲
904c9eb3c4
CPU (macOS): code refactor
2023-09-08 10:11:31 +08:00
李通洲
28e412b79d
CPU: add JSON printing support
2023-09-05 15:29:46 +08:00
李通洲
74233ac0cb
Temps (macOS): code refactors
2023-08-07 10:19:08 +08:00
李通洲
92b1d74d12
CPU (Android): better CPU name detection
...
at least for Xiaomi
2023-07-27 20:46:11 +08:00
李通洲
5fcf5b7f64
CPU (Linux): tidy
2023-07-27 16:16:09 +08:00
李通洲
e685a00a4b
FFstrbuf: remove ffStrbufRemoveStringsV; rename ffStrbufRemoveStringsA to ffStrbufRemoveStrings
2023-07-25 17:35:09 +08:00
Piotr Kubaj
63fbaa146c
CPU: properly detect CPU on POWER
...
Excerpt for a thread from /proc/cpuinfo:
processor : 0
cpu : POWER9, altivec supported
clock : 3800.000000MHz
revision : 2.2 (pvr 004e 1202)
Without this patch, the following is printed for a CPU:
CPU: CPU (64) @ 3.8 GHz
With it, there is:
CPU: POWER9, altivec supported (64) @ 3.8 GHz
2023-07-12 19:54:09 +08:00
李通洲
d0f093c567
Global: make FFinstance instance a global variable
...
As discussed in https://github.com/fastfetch-cli/fastfetch/discussions/473
2023-06-24 17:28:05 +08:00
Carter Li
85597e4d46
CPU (FreeBSD): actually support temp detection
2023-06-22 04:06:08 +00:00
李通洲
5678019204
CPU (Windows): fix detection bug
2023-06-17 19:17:10 +08:00
李通洲
a18073f5de
FreeBSD (CPU): fix temperature detection
2023-06-15 09:35:47 +08:00
李通洲
56effcb189
CPU: use module options
2023-06-12 10:33:28 +08:00
李通洲
39582471e8
Global: major FFlist related code refactor
2023-06-10 09:15:15 +08:00
李通洲
c7119498a3
Global: major FFstrbuf related code refactor
2023-06-10 09:15:15 +08:00
李通洲
f205982ae5
CPU: support JSON config
2023-06-10 09:15:15 +08:00
李通洲
b3da6b0e89
CPU (Windows): try improving performance
2023-03-21 15:27:34 +08:00
李通洲
7f15f91bd3
Temps (Windows): dirty support
...
Note: https://stackoverflow.com/a/17083409
2023-02-23 21:31:33 +08:00
Linus Dierheimer
a1ea7804f3
IO: Separate platform specific implementations
2023-01-28 12:40:12 +01:00
Linus Dierheimer
2c51d55ba2
IO: don't require posix specific stuff for ffPathExists
2023-01-28 11:52:23 +01:00
李通洲
f640102b0e
CPU (Linux): fix compiler warnings
2023-01-21 14:03:57 +08:00
李通洲
6f4bdafb0c
Temp: fix severial issues. Fixes #398
...
1. Temp detection has been gated behind of `--*-temp`. Don't make it a slow operation
2. According to [the kernel doc](https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface ), `temp1_input` is millidegree Celsius, which should be divided by 1000
3. There is no `/sys/class/hwmon/hwmon3/device/class` on my laptop, but `/sys/class/hwmon/hwmon3/device/device/class`. Need to confirm with @LinusDierheimer
4. Small code optimizations
2023-01-21 06:18:19 +08:00
Aaron Franke
5cc17bc306
Add support for displaying the ISA string on RISC-V CPUs
2023-01-09 02:21:26 -06:00
李通洲
90359d227e
Global: don't require sysinfo.h globally
...
... which is Linux specific
2022-12-28 17:20:20 +08:00
李通洲
ff6e982050
Global: remove caching except image caching
2022-12-17 12:41:11 +08:00
李通洲
5c381460ce
util: rename register -> registry
2022-11-27 12:21:53 +08:00
李通洲
0ab38bb4d7
CPU: fix cpu freq detection in WSL
...
`/sys/devices/system/cpu/cpufreq/policy0/` doesn't exist in WSL
2022-11-24 23:30:54 +08:00
李通洲
4fa3ca98a2
util/register: fix crashing when value string contains non-ascii chars
...
We can't use RegGetValueA because RegGetValueA converts wide string to non UTF-8 string, which results in crashing when printing
2022-11-23 17:44:57 +08:00
李通洲
051423e75e
util: add mallocHelper and use it
2022-11-23 17:44:57 +08:00
李通洲
9ef95e43a3
CPU: improve performance (Windows)
2022-11-22 19:40:57 +08:00
李通洲
e8e586ce7c
Windows / macOS: simplify code
...
1. simplify resource management by using C++ RAII like GCC attribute extension `cleanup`
2. simplify HEKY reading
Actually `__attribute__((__cleanup__(cleanupFn)))` is supported on all major C compiler ( gcc, clang and icc ) except MSVC I only used it on Windows and macOS for now. Let's see if the project author like it.
2022-11-17 19:54:36 +08:00
李通洲
a498e9e142
CPU: don't remove (R) in CPU name to be consistant with GPU name
2022-11-17 10:33:50 +08:00
李通洲
85a554b60d
CPU: support Windows 7
2022-11-12 21:33:31 +08:00
李通洲
9ad7ba7144
CpuTemp: support freebsd
...
Untested
2022-10-27 11:15:53 +08:00
李通洲
38b3aae1e3
Windows: simplify WMI query code
...
by making C++ code more C++
2022-10-17 00:17:26 +08:00
李通洲
32d3edc690
CPU: add support for Windows
2022-10-09 15:37:14 +08:00
李通洲
100e59fd49
Temps: add options to enable detection ( disabled by default )
2022-09-26 15:29:11 +08:00
李通洲
51c70bc44a
Temps: support macOS
2022-09-26 15:29:11 +08:00
Linus Dierheimer
f5ac85c4e3
Only detect temps if --allow-slow-operations is given
2022-09-24 15:59:36 +02:00
Linus Dierheimer
d31d157b00
New caching mechanism for CPU
2022-09-21 17:26:10 +02:00
Linus Dierheimer
f0cee064bd
Basic BSD support
2022-09-19 23:16:43 +02:00
Linus Dierheimer
6bd933eba2
Enable BSD support in CMake
2022-09-19 22:23:31 +02:00
Linus Dierheimer
2a61d29be9
sysctl utils
2022-09-19 21:31:50 +02:00
Linus Dierheimer
49cdacd5a9
Build cpu on free bsd
2022-09-19 19:31:29 +02:00
Linus Dierheimer
cfcc4c8375
MacOS cpu support
2022-09-04 14:12:04 -07:00