memory: fix issue in yash
This commit is contained in:
parent
f4bb7a3da8
commit
300f31c5cd
2
pfetch
2
pfetch
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user