docs: update

This commit is contained in:
Dylan Araps 2019-09-26 21:08:30 +03:00
parent c2924d79b9
commit bc36bb500f

6
pfetch
View File

@ -439,12 +439,12 @@ get_memory() {
# This is a really simpler parser for 'vmstat' which grabs # This is a really simpler parser for 'vmstat' which grabs
# the used memory amount in a lazy way. 'vmstat' prints 3 # the used memory amount in a lazy way. 'vmstat' prints 3
# lines of output with the needed value being stored in the # lines of output with the needed value being stored in the
# third and last line. # final line.
# #
# This loop simply grabs the 3rd element of each line until # This loop simply grabs the 3rd element of each line until
# the EOF is reached. Each line overwrites the value of the # the EOF is reached. Each line overwrites the value of the
# previous so we're left with what we wanted. This isn't # previous one so we're left with what we wanted. This isn't
# slow as only 3 lines are parsed! # slow as only 3 lines are parsed.
while read -r _ _ line _; do while read -r _ _ line _; do
mem_used=${line%%M} mem_used=${line%%M}