diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 17:18:18 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 17:18:18 +0300 |
| commit | 300f31c5cd761706c0fd249ba1717c6adcc5a1a5 (patch) | |
| tree | bfcc11db2a807dd772a5e9cd84245134c5287be6 | |
| parent | f4bb7a3da88d010fae18ca820259cb906d832bf0 (diff) | |
| download | pfetch-300f31c5cd761706c0fd249ba1717c6adcc5a1a5.tar.gz | |
memory: fix issue in yash
| -rwxr-xr-x | pfetch | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -471,7 +471,7 @@ get_memory() { # Parse the '/proc/meminfo' file splitting on ':' and 'k'. # The format of the file is 'key: 000kB' and an additional # split is used on 'k' to filter out 'kB'. - while IFS=:k read -r key val _; do + while IFS=':k ' read -r key val _; do case $key in MemTotal) mem_used=$((mem_used + val)) |
