slstatus/components
Repository files (latest commit first)
Filename Latest commit message Latest commit date
drkhsh 8723e8b8c6 more concise memory calculation on Linux
more flexible parsing for /proc/meminfo to take shared and reclaimable
memory into account. this matches the output with free(1).

additionally this could fix some corner cases, as the order of fields in
/proc/meminfo is not strictly defined.

slstatus:
percent 81% free 2.5 Gi total 23.4 Gi used 19.0 Gi

free(1):
               total        used        free      shared  buff/cache   available
Mem:            23Gi        19Gi       2.5Gi       1.3Gi       3.2Gi       3.6Gi
2025-07-24 22:41:25 +02:00
..
battery.c battery: Consistent naming for capacity percentage 2022-12-19 02:44:21 +01:00
cat.c New component: cat 2022-11-24 00:01:52 +01:00
cpu.c radical re-formatting 3/3: Error checks 2022-10-28 01:03:46 +02:00
datetime.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
disk.c disk: Cast fsblkcnt_t to double instead of float 2022-12-19 02:44:21 +01:00
entropy.c entropy: Use Unicode escape sequence in string 2022-12-19 02:44:21 +01:00
hostname.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
ip.c add 'up' for whether a interface is up or down 2025-04-30 03:09:55 +02:00
kernel_release.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
keyboard_indicators.c radical re-formatting 2/3: Fix blocks 2022-10-28 01:03:38 +02:00
keymap.c Add underscore to separators in strtok() call in keymap.c 2025-04-30 03:08:02 +02:00
load_avg.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
netspeeds.c radical re-formatting 3/3: Error checks 2022-10-28 01:03:46 +02:00
num_files.c num_files: opendir() returns a directory stream 2022-12-19 02:44:21 +01:00
ram.c more concise memory calculation on Linux 2025-07-24 22:41:25 +02:00
run_command.c radical re-formatting 2/3: Fix blocks 2022-10-28 01:03:38 +02:00
swap.c radical re-formatting 3/3: Error checks 2022-10-28 01:03:46 +02:00
temperature.c radical re-formatting 2/3: Fix blocks 2022-10-28 01:03:38 +02:00
uptime.c uptime: Use sizeof instead of repeating the size 2022-12-19 02:44:21 +01:00
user.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
volume.c radical re-formatting 0/3: Alphabetic headers 2022-10-28 01:03:20 +02:00
wifi.c refactor wifi on linux 2025-04-30 04:00:53 +02:00