李通洲
39564acde4
Platform: replaces pageSize for pageSizeShift
2026-09-20 20:56:42 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
李通洲
831659966f
Style: adds Cpp11BracedListStyle: Block
2026-03-31 14:20:21 +08:00
李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
李通洲
dc04273bd7
Memory (macOS): updates algorithm in order not to use hw.memsize_usable which is available on newer macOS version
...
Adds a new CMake option to use usable memory size at the same time
Fixes #2171
2026-01-29 09:34:50 +08:00
李通洲
e44df27c96
Memory (macOS): adds debug info
...
Usage: `fastfetch -s memory:swap -l none --dynamic-interval 1000 --debug --no-buffer`
See https://github.com/fastfetch-cli/fastfetch/issues/2171#issuecomment-3803309478
2026-01-27 14:24:38 +08:00
李通洲
610fc2ea36
Memory (macOS): Refines Memory usage detection on macOS to match Activity Monitor more closely
2025-12-18 13:36:38 +08:00
李通洲
94941daf4f
Memory (macOS): uses hw.memsize_usable
2025-12-16 10:41:27 +08:00
Carter Li
a749014e7c
Kernel: code refactor
2024-07-02 10:47:14 +08:00
李通洲
e804dfc49e
Memory (macOS): align algo of memory usage counting to stats
...
Which seems to print the same result of neofetch
2023-12-14 16:13:05 +08:00
李通洲
3e0d97db2e
Platform: detect system page size
2023-11-08 00:10:16 +08:00
李通洲
e837e1e1d1
Swap: split module code from memory.c
2023-05-11 22:03:18 +08:00
李通洲
e2d145cf31
Memory (Apple): use sysctl instead of sysctlbyname
2023-02-14 17:31:07 +08:00
李通洲
6ff67e87eb
Memory: refactor, don't cache results
2022-12-28 17:20:20 +08:00
李通洲
581c6f547d
Swap: split code out from memory detection
...
1. Since swap module is disabled by default, swap detection is unnecessary in most cases.
2. On platform other than Linux, swap detection doesn't share code with memory.
3. Swap detection can be expensive. On Windows, it requires another WMI query which can lag heavily in some cases. Don't pay for you don't use.
2022-10-19 00:24:17 +08:00
Linus Dierheimer
01a917982c
Fix build on macos
2022-09-20 15:21:39 +02:00
Linus Dierheimer
a9cb178315
Better error messages for memory & swap
2022-09-20 15:12:24 +02:00
Linus Dierheimer
f3e6d04c8e
Fix build on macos the second
2022-09-19 21:45:39 +02:00
Linus Dierheimer
2a61d29be9
sysctl utils
2022-09-19 21:31:50 +02:00
Carter Li
8c6cf2ccda
Swap: add macOS support
2022-09-17 11:21:05 +08:00
Linus Dierheimer
be7f8f4117
Swap module
...
#225
2022-09-08 14:51:31 +02:00
Linus Dierheimer
a1fde6f922
MacOS memory support
2022-09-05 02:46:53 -07:00
Linus Dierheimer
6a44515cf2
Separate memory detection and printing logic
2022-09-05 10:57:09 +02:00