李通洲
61656a1a7a
Global: replaces __attribute__ to C23 [[attribute]]
2026-07-11 08:14:21 +08:00
李通洲
ba18705d2e
Global: replaces NULL to nullptr
2026-07-10 18:10:09 +08:00
李通洲
abc6c0593c
Chore: IndentPPDirectives: BeforeHash [ci skip]
2026-04-15 16:17:08 +08:00
李通洲
c7ecc33b64
Global: removes FFlist::elementSize
...
Improves performance of module Sound and PhysicalMemory
2026-04-14 15:47:26 +08:00
Carter Li
f6a363f7ad
Global: unifies GCC attributes usage
2026-04-09 20:02:04 +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
李通洲
121d399641
CPUUsage (Windows): simplifies Win10 detection
2026-03-07 09:24:38 +08:00
李通洲
461552b8d0
DynamicInterval: reruns prepare code before next interval
...
Fixes #2152
2026-01-16 20:02:03 +08:00
李通洲
8423efb686
CMake (Windows): introduces a flag to remove Win7 compat mode
2026-01-07 11:05:12 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
Carter Li
a80ea2b117
CPUUsage: adds user guidance when CPU time fails to increase
2025-08-24 22:23:07 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
98738b6920
CPUUsage (Windows): detect perflib support dynamically based on OS version
2025-07-02 19:40:22 +08:00
李通洲
18a6929662
CPUUsage (Windows): disable ENABLE_CPUUSAGE_PERFLIB by default
...
Because Windows 7 doesn't support it
2025-07-01 22:08:08 +08:00
李通洲
4abb183735
CPUUsage(Windows): add new method using Windows Performance Library
2025-07-01 20:53:46 +08:00
李通洲
ec7f14ab96
CpuUsage (Windows): refine KernelTime calculation by removing unused DPC and interrupt time
2025-06-30 19:37:04 +08:00
李通洲
d94cdf4424
CpuUsage (Linux / BSD): include interrupt and softirq times in CPU usage calculations
2025-06-30 19:36:46 +08:00
李通洲
7562e05123
Chore: fix a lot code smell
2025-03-25 22:08:50 +08:00
李通洲
9ff3142b61
CPUUsage (Haiku): add support
2025-02-16 19:13:47 +08:00
Carter Li
e7630aef34
NetBSD: support CPUUsage / Memory / Swap
2024-10-28 16:10:20 +08:00
李通洲
fd26373c8f
Global: overall optimization
2024-10-26 11:42:07 +08:00
李通洲
c8521b55b9
CPUUsage / DiskIO / NetIO: add option waitTime
2024-10-22 11:08:44 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
apocelipes
84cc9e3b15
Chore: fix some unused paramater/function warnings ( #1324 )
2024-10-06 23:01:49 +08:00
Carter Li
a32d9d788c
OpenBSD: init platform support
2024-10-04 17:49:18 +08:00
Carter Li
1b29f5b3a5
SunOS: support CPUUsage detection
2024-06-17 22:51:40 +08:00
Carter Li
d296e53213
CPUUsage (BSD): fix totalAll calculation
2024-06-17 22:51:02 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
apocelipes
1c24cb3ebb
refactor: simplify parsing
2023-12-04 19:47:34 +08:00
apocelipes
9fee532cb6
fix(CPUUsage): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
1b3d713e50
CPUUsage: always print something
2023-11-01 15:36:13 +08:00
李通洲
6e816fca6e
CPUUsage: don't hang on weird host
...
Try fixing CI of FreeBSD
2023-11-01 15:26:24 +08:00
李通洲
0cc38c20be
CPUUsage (FreeBSD): silence compiler warnings
2023-10-15 10:52:05 +08:00
李通洲
e297144fe2
CPUUsage: fix multi core data detection
2023-10-10 18:46:59 +08:00
李通洲
42cf88be9d
CPUUsage: support display value per core
2023-10-10 16:24:44 +08:00
李通洲
6b008ed93b
CPUUsage (FreeBSD): count cpu cores separately
2023-10-10 13:56:19 +08:00
李通洲
c96d21c7c0
CPUUsage (Linux): count cpu cores separately
2023-10-10 13:41:08 +08:00
李通洲
2feb53149a
Revert "CpuUsage (apple): simplify implementation"
...
This reverts commit cabd36d078 .
2023-10-10 13:41:08 +08:00
李通洲
77e0d9dba1
JsonConfig: prepare for module weather and public ip
2023-08-18 13:38:32 +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
李通洲
305533a0d4
CpuUsage: support JSON config
2023-06-10 09:15:15 +08:00