Carter Li
4dc27b365f
DiskIO / NetIO: fixes I/O rate calculation precision, prevent div-by-zero
2026-08-15 08:51:45 +08:00
李通洲
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
Carter Li
d1bf208a92
Chore: renames stringUtils to strutil
2026-05-28 15:58: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
李通洲
5f261702a9
Style: adds BreakBeforeCloseBracketBracedList: true
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
李通洲
72bdee7fbf
Global (Windows): prefers RtlUnicodeToUTF8N instead of WideCharToMultiByte
2026-03-11 22:40:13 +08:00
李通洲
461552b8d0
DynamicInterval: reruns prepare code before next interval
...
Fixes #2152
2026-01-16 20:02:03 +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
李通洲
02c999725c
NetIO (SunOS): fix build
2025-08-07 23:30:53 +08:00
Carter Li
a84c4dc1f4
Netif: refactor API for dual-stack route detection
...
Unifies IPv4 and IPv6 default route queries under a shared result structure and per-family functions. Improves clarity and extensibility by centralizing route logic, streamlining detection of preferred interfaces, and updating all consumers to use the new API.
Prepares for more robust multi-protocol network information handling.
2025-08-07 16:35:42 +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
Carter Li
bcc6492115
NetIO (Linux): use openat
2025-04-14 18:48:04 +08:00
Carter Li
fc3f47742a
NetIO (Haiku): code cleanup
2025-02-16 10:14:14 +08:00
François Revol
1d2b6c0b1a
NetIO (Haiku): add support
2025-02-16 10:04:36 +08:00
李通洲
e5451b6826
NetIO (BSD): remove unnecessary checks
...
Seems...
2024-11-15 15:13:09 +08:00
李通洲
9f314a208b
NetIO (BSD): add txDrops detection if supported
2024-11-15 15:13:09 +08:00
李通洲
56eb8b80c6
NetIO (macOS): fix 32bit trancation
2024-11-15 15:11:55 +08:00
Carter Li
0110584e39
NetIO (*BSD): support OpenBSD & NetBSD
2024-11-01 18:51:59 +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
77ab00a4f4
SunOS: support NetIO detection
2024-06-18 10:18:12 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
李通洲
6ad1262f4a
NetIO: add option --netio-detect-total
2024-02-20 14:44:55 +08:00
apocelipes
113b1b8fc2
fix: fix trailing space
2023-12-23 02:55:14 +00:00
李通洲
fe4eb564e1
NetIO: add missing #pragma once
2023-10-07 16:12:37 +08:00
李通洲
a7a8f2f461
NetIO (BSD): fix compiling
2023-09-27 10:48:54 +08:00
李通洲
5e5c0b4a58
NetIO: improve performance
2023-09-27 10:31:35 +08:00
李通洲
154657b455
NetUsage: rename to NetIO
2023-09-27 00:06:11 +08:00