diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-26 21:08:30 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-26 21:08:30 +0300 |
| commit | bc36bb500f0957e27173d8bd9fed446bc224d140 (patch) | |
| tree | 62279f0711aefa8b5decaada8fbfbb8d3cdf77b7 | |
| parent | c2924d79b96d2e0e83c6de897ecbd170e1c31547 (diff) | |
| download | pfetch-bc36bb500f0957e27173d8bd9fed446bc224d140.tar.gz | |
docs: update
| -rwxr-xr-x | pfetch | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -439,12 +439,12 @@ get_memory() { # This is a really simpler parser for 'vmstat' which grabs # the used memory amount in a lazy way. 'vmstat' prints 3 # 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 # the EOF is reached. Each line overwrites the value of the - # previous so we're left with what we wanted. This isn't - # slow as only 3 lines are parsed! + # previous one so we're left with what we wanted. This isn't + # slow as only 3 lines are parsed. while read -r _ _ line _; do mem_used=${line%%M} |
