mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-03 13:38:27 +00:00
memory: netBSD fix
This commit is contained in:
1 parent
ca4004de90
commit
8ff9d722b5
1 file changed
+1
-1
@@ -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))
|
||||||
|
|||||||
Reference in new issue
Block a user