diff options
author | Joe <bousset.rudy@gmail.com> | 2022-08-18 11:40:42 +0200 |
---|---|---|
committer | Joe <bousset.rudy@gmail.com> | 2022-08-18 11:40:42 +0200 |
commit | df199be23e52d66ed4ac067d6d9313af1f14629f (patch) | |
tree | 48bb31b13d0898b99d37be7be875af856aa1fc90 | |
parent | added disks (diff) | |
download | dotfiles-bsd-df199be23e52d66ed4ac067d6d9313af1f14629f.tar.gz dotfiles-bsd-df199be23e52d66ed4ac067d6d9313af1f14629f.tar.bz2 dotfiles-bsd-df199be23e52d66ed4ac067d6d9313af1f14629f.tar.xz dotfiles-bsd-df199be23e52d66ed4ac067d6d9313af1f14629f.tar.zst dotfiles-bsd-df199be23e52d66ed4ac067d6d9313af1f14629f.zip |
cleaner
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/status/sb-memory | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/status/sb-memory b/.local/bin/status/sb-memory index 2ab06bd..ecd0e3c 100755 --- a/.local/bin/status/sb-memory +++ b/.local/bin/status/sb-memory @@ -1,3 +1,7 @@ #!/bin/sh -freecolor -o | sed -n '2p' | awk '{printf (" %2.2fG/%2.2fG\n", ($3 / (1024 ^ 2)), ($2 / (1024 ^ 2)))}' +sysctl -n hw.physmem \ + hw.pagesize \ + vm.stats.vm.v_inactive_count \ + vm.stats.vm.v_free_count \ + vm.stats.vm.v_cache_count | xargs | awk '{printf (" %2.2fG/%2.2fG\n", ($1 / (1024 ^ 3)) - (($3 + $4 + $5) * $2 / (1024 ^ 3)), ($1 / (1024 ^ 3)))}' |