李通洲
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
李通洲
8facb7c6e9
Uptime (Windows): improves comments
2026-03-23 16:01:29 +08:00
李通洲
f924a8bf06
Uptime: reads (System|Interrupt)Time directly from SharedUserData
2026-03-07 00:09:08 +08:00
李通洲
8423efb686
CMake (Windows): introduces a flag to remove Win7 compat mode
2026-01-07 11:05:12 +08:00
李通洲
3a7f4f5848
Uptime (Windows): silences a compiler warning
2026-01-07 08:56:00 +08:00
李通洲
c640ddbff7
Uptime (Windows): uses QueryInterruptTime on WoA unconditionally
2026-01-06 22:41:00 +08:00
李通洲
977e3f317e
Uptime (Windows): improves accurancy on Windows 10 and later
2026-01-06 19:59:02 +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
李通洲
cace1a7156
Revert "Uptime (Windows): use QueryUnbiasedInterruptTime"
...
Fixes #1935
This reverts commit b812f3ccde .
2025-08-28 18:22:06 +08:00
Carter Li
1d32344cf7
Global (GNU): code cleanups
2025-08-24 19:37:06 +08:00
Yelninei
71fbe04367
Start work on GNU
2025-08-24 11:29:01 +01: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
李通洲
b812f3ccde
Uptime (Windows): use QueryUnbiasedInterruptTime
...
As suggested by MSDN
2025-04-15 16:41:38 +08:00
李通洲
fe46159e40
Uptime (NetBSD): fix boot time calcuation
2025-03-31 23:40:35 +08:00
Carter Li
e38f094c16
Uptime (Haiku): silence compiler warnings
2025-02-13 22:56:25 +00:00
François Revol
01f400c15f
Haiku: minimal implementation ( #1538 )
2025-02-05 09:08:28 +08:00
李通洲
32939eabab
Uptime (NetBSD): fix invalid result
2024-10-27 12:19:48 +08:00
李通洲
b257134d74
Chore: introduce macro ARRAY_SIZE
2024-10-18 16:44:41 +08:00
may
f4424b4204
Uptime (Linux): fix linux bootTime ( #1249 )
...
the previous implementation was adding the elapsed time since
boot to the current time instead of subtracting it
2024-09-05 10:35:29 +08:00
Carter Li
06aaf0f3fd
SunOS: support disk detection; fix a small bug
2024-06-17 19:32:54 +08:00
Carter Li
d35490aeef
Fastfetch: make it compile on SunOS
2024-06-16 01:02:48 +08:00
李通洲
c2f815f5ba
Uptime (Android): fix implementation
...
Regression of 41fed1da5f
2024-03-02 18:37:32 +08:00
apocelipes
1c24cb3ebb
refactor: simplify parsing
2023-12-04 19:47:34 +08:00
apocelipes
57f88d2167
fix(Uptime): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
李通洲
167b130011
Uptime (Linux): fix maybe uninitialized variable errors
2023-11-27 20:52:14 +08:00
李通洲
41fed1da5f
Uptime (Linux): don't use syscall
...
Fix #620
2023-11-24 10:12:10 +08:00
李通洲
f9597eba39
Global: remove #ifndef FF_INCLUDED_* guards
2023-11-09 13:46:45 +08:00
李通洲
9b72971dc9
Uptime (FreeBSD): fix building
2023-09-13 08:49:10 +08:00
李通洲
f3ec60a061
Uptime: add ffTimeGetNow() and use it
2023-09-12 14:55:33 +08:00
李通洲
cde2ba2c18
Uptime: detect boot time
2023-09-08 14:17:34 +08:00
李通洲
a4c8b93a07
Uptime: support JSON config
2023-06-10 09:15:15 +08:00
李通洲
51bc06f60b
Uptime: code refactor
2023-06-10 09:15:15 +08:00
李通洲
725d2f2612
Windows: fix <Windows.h> header mess
2023-03-25 00:50:40 +08:00
李通洲
90359d227e
Global: don't require sysinfo.h globally
...
... which is Linux specific
2022-12-28 17:20:20 +08:00
李通洲
470d160346
Uptime: support freebsd
2022-10-26 17:43:08 +08:00
李通洲
2689a20889
Uptime: support Windows
2022-10-13 23:49:08 +08:00