memory: netBSD fix
This commit is contained in:
parent
ca4004de90
commit
8ff9d722b5
2
pfetch
2
pfetch
|
@ -574,7 +574,7 @@ get_memory() {
|
||||||
|
|
||||||
# NetBSD implements a lot of the Linux '/proc' filesystem,
|
# NetBSD implements a lot of the Linux '/proc' filesystem,
|
||||||
# this uses the same parser as the Linux memory detection.
|
# this uses the same parser as the Linux memory detection.
|
||||||
while IFS=:k read -r key val _; do
|
while IFS=':k ' read -r key val _; do
|
||||||
case $key in
|
case $key in
|
||||||
MemFree)
|
MemFree)
|
||||||
mem_free=$((val / 1024))
|
mem_free=$((val / 1024))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user