diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-30 23:16:03 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-30 23:16:03 +0300 |
| commit | 120e8a876040c13d44686dc4dee1ace0bdd45100 (patch) | |
| tree | 787af4859ab6b09ddccadf9211ec53561210097b | |
| parent | d706ec7a01c72544a24cb2f17e6d5601fb11bb9d (diff) | |
| download | pfetch-120e8a876040c13d44686dc4dee1ace0bdd45100.tar.gz | |
docs: update
| -rwxr-xr-x | pfetch | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -644,6 +644,15 @@ get_memory() { SunOS) hw_pagesize=$(pagesize) + # 'kstat' outputs memory in the following format: + # unix:0:system_pages:pagestotal 1046397 + # unix:0:system_pages:pagesfree 885018 + # + # This simply uses the first "element" (white-space + # separated) as the key and the second element as the + # value. + # + # A variable is then assigned based on the key. while read -r key val; do case $key in *total) pages_full=$val ;; |
