李通洲
89bc7eb015
DiskIO: move device info detected in PhysicalDisk module
2023-12-18 15:12:52 +08:00
李通洲
3cd81ec3ad
PhysicalDisk: add new module
2023-12-18 15:12:52 +08:00
李通洲
0f497a53ad
DiskIO (macOS): detect serial number and removable
2023-12-18 09:57:19 +08:00
Carter Li
569883a1a1
DiskIO (FreeBSD): detect disk serial number
2023-12-18 09:01:33 +08:00
李通洲
04a41cbd6b
DiskIO (Windows): don't use registry
2023-12-17 21:49:54 +08:00
李通洲
4e4246a46a
DiskIO (Windows): fix segfault and memleak
2023-12-17 19:40:24 +08:00
李通洲
c3a28064f6
DiskIO: tidy
2023-12-17 19:29:45 +08:00
李通洲
ce9f9ed7ed
Windows: try fixing --no-buffer
2023-12-17 19:04:49 +08:00
李通洲
fb8c7d6e4a
DiskIO: add property removable
2023-12-17 18:40:41 +08:00
李通洲
70f39e641c
DiskIO (Windows): improve device name detection
2023-12-17 18:24:01 +08:00
李通洲
1dbd8474c2
DiskIO (Linux): fix serial number detection
2023-12-17 17:27:38 +08:00
李通洲
e7c787159a
DiskIO: print serial number in json format
...
Always init serial property
2023-12-17 13:51:17 +08:00
李通洲
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