docs: update
This commit is contained in:
parent
d706ec7a01
commit
120e8a8760
9
pfetch
9
pfetch
|
@ -644,6 +644,15 @@ get_memory() {
|
||||||
SunOS)
|
SunOS)
|
||||||
hw_pagesize=$(pagesize)
|
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
|
while read -r key val; do
|
||||||
case $key in
|
case $key in
|
||||||
*total) pages_full=$val ;;
|
*total) pages_full=$val ;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user