李通洲
9339a0fb4e
DiskIO (Windows): detect serial number
2023-12-17 13:43:52 +08:00
Carter Li
b692b759c7
DiskIO (Linux): detect interconnect more aggressively
2023-12-17 12:52:34 +08:00
李通洲
529f94c64a
DiskIO (Linux): better handling virtual devices
2023-12-17 12:21:12 +08:00
李通洲
e071a1eeb2
Disk (Linux): improve removable type detection
2023-12-17 12:13:28 +08:00
李通洲
3400e40e47
DiskIO (Linux): detect device serial number
2023-12-17 11:48:59 +08:00
李通洲
d32125e988
DiskIO (Linux): improve device name detection
2023-12-17 11:47:05 +08:00
李通洲
b3484088e9
FFPlatform (Linux): tidy
2023-12-17 11:46:28 +08:00
Carter Li
f91a8aea4d
DiskIO (Linux): improve detection
...
1. Ignore `dm-*`
2. Add devices that don't have disk ids
3. Fix device size detection
2023-12-17 10:39:25 +08:00
Carter Li
335022e034
SMBIOS: ignore more meaningless values
2023-12-17 09:10:11 +08:00
Carter Li
8fa073b1e4
DisplayServer (Linux): test for status instead of enabled
2023-12-17 01:00:37 +08:00
李通洲
10e1753c03
DisplayServer (Linux): better handling abnormal situations
...
Try fix #660
2023-12-17 00:41:59 +08:00
李通洲
224a6a9881
TerminalShell: code cleanup
2023-12-15 14:29:51 +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
李通洲
8048101eca
Doc: fix documentation of --ds-force-drm
2023-12-14 16:13:05 +08:00
Horst G. Burkhardt
833727f333
remove unnecessary escaping for Adelie logo
2023-12-14 15:15:52 +08:00
李通洲
8ed5d30b3e
Wifi (Windows): use less magic numbers
2023-12-13 19:33:20 +08:00
Carter Li
25a792743b
WMDE: tidy
2023-12-12 18:22:20 +08:00
Carter Li
b63e6a3053
DE (Linux): add support for CDE
...
Fix #658
2023-12-12 18:20:02 +08:00
Carter Li
453f4757ed
DE (FreeBSD): support detection with processes
2023-12-12 10:10:08 +08:00
李通洲
0555fb97e8
TerminalShell (Linux): tidy
2023-12-12 09:51:09 +08:00
李通洲
663d568927
DE (Linux): fix xfce4 version detection
2023-12-11 16:36:12 +08:00
李通洲
165c213ed0
FFstrbuf: don't crash with ffStrbufAppendNC(&str, 0, 'c')
2023-12-11 15:21:16 +08:00
李通洲
a28dc8a9bf
DisplayServer (Linux): support --ds-force-drm sysfs-only
2023-12-11 13:25:58 +08:00
李通洲
f20b6d4387
Temps (macOS): support Apple M3
2023-12-08 16:10:10 +08:00
李通洲
40aa4a60d6
Packages: improve performance of pkg and rpm detection
2023-12-08 09:49:17 +08:00
apocelipes
1504e26e38
optimize(Packages): optimize reading large files
...
Using less syscalls and processing data in memory
makes getNumStringsImpl ~300% faster.
The code is much simpler.
2023-12-07 20:32:14 +08:00
李通洲
a9c5c2892c
Memory (Linux): Use MemAvailable if available
2023-12-07 16:30:10 +08:00
李通洲
bd40205427
Help: fix json text loading
2023-12-06 23:55:34 +08:00
李通洲
6799076fa6
Logo (Builtin): fix compiling
2023-12-06 10:30:56 +08:00
李通洲
573a315d61
Help: tweaks
2023-12-06 10:29:28 +08:00
xray_os
af94cf4d0d
fixing the name of my distro
2023-12-06 08:51:29 +08:00
李通洲
e350cce99e
Logo: fix building on Windows
2023-12-04 20:32:46 +08:00
apocelipes
1c24cb3ebb
refactor: simplify parsing
2023-12-04 19:47:34 +08:00
apocelipes
0662af17f4
fix(TerminalShell): fix reading procfs files
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
apocelipes
57f88d2167
fix(Uptime): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
apocelipes
ed879ee53c
fix(Swap): fix reading procfs files and simplify data parsing
2023-12-04 19:47:34 +08:00
apocelipes
6eae425679
fix(Memory): fix reading procfs files and simplify data parsing
...
Files in procfs are always changed by kernel.
It means if we read the data with more than one read syscall,
we could get an incorrect data which was broken by kernel.
A typical case about this problem was reported by psutil in
https://github.com/giampaolo/psutil/issues/2050
Using an big buffer let read reads the whole file can fix this.
psutil uses a 32K buffer while procps-ng uses a 8K buffer, i think a 8K buffer is enough.
2023-12-04 19:47:34 +08:00
李通洲
af6f395ba3
DiskIO: increase number of format args for disk size
2023-12-04 16:08:04 +08:00
李通洲
3fda6e425a
Global: never leak fd to child processes
2023-12-04 15:14:40 +08:00
李通洲
82581aa9e4
Processing: increase buffer size
2023-12-04 15:10:58 +08:00
李通洲
6bd515fed4
Packages (macOS): rename port to macports
2023-12-04 15:07:13 +08:00
李通洲
532007267c
Logo (Builtin): add Ironclad
2023-12-04 14:55:10 +08:00
李通洲
87a4758497
Logo (Builtin): update parch
2023-12-04 14:49:43 +08:00
李通洲
6a9cce62ab
Logo (Builtin): add Adelie
2023-12-04 14:47:28 +08:00
李通洲
ccfe961a1f
DiskIO (FreeBSD): support disk name, size and physical type detection
2023-12-04 13:54:26 +08:00
李通洲
97211df285
DiskIO (macOS): detect disk size
2023-12-04 08:59:41 +08:00
apocelipes
4868517d53
optimize(IO): reduce memory usage during reading data from files to FFstrbufs
...
Avoid unnecessary calls of ffStrbufEnsureFree and only allocate
necessary memory.
In most cases, this will save 30% ~ 50% of memory used by ffAppendFDBuffer.
2023-12-03 19:57:49 +08:00
李通洲
2979bfe4ca
DiskIO: detect physical drive size
2023-12-03 19:02:29 +08:00
李通洲
42fd1a9cd7
DisplayServer (FreeBSD): enable libdrm support
2023-12-03 12:10:52 +08:00