slstatus/components
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
..
2022-11-24 00:01:52 +01:00
2022-10-28 01:03:46 +02:00
2025-07-24 22:41:25 +02:00
2022-10-28 01:03:46 +02:00
2025-04-30 04:00:53 +02:00