diff options
| author | drkhsh <me@drkhsh.at> | 2025-07-24 22:41:25 +0200 |
|---|---|---|
| committer | drkhsh <me@drkhsh.at> | 2025-07-24 22:41:25 +0200 |
| commit | 8723e8b8c69c08bae8abe02ea1f4a49758b8bdfc (patch) | |
| tree | 47dc5b477c58d6080f360adf3fcb3097ccb173f4 /components/load_avg.c | |
| parent | 6eb7887853537ac0cf91517019328e038382bdd8 (diff) | |
| download | slstatus-8723e8b8c69c08bae8abe02ea1f4a49758b8bdfc.tar.gz | |
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
Diffstat (limited to 'components/load_avg.c')
0 files changed, 0 insertions, 0 deletions
