memory: netBSD fix

This commit is contained in:
Dylan Araps 2019-09-29 16:59:08 +03:00
parent ca4004de90
commit 8ff9d722b5

2
pfetch
View File

@ -574,7 +574,7 @@ get_memory() {
# NetBSD implements a lot of the Linux '/proc' filesystem,
# 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
MemFree)
mem_free=$((val / 1024))