diff --git a/neofetch b/neofetch index 10016076..fdff930b 100755 --- a/neofetch +++ b/neofetch @@ -1466,9 +1466,10 @@ get_memory() { # Mem used. case "$kernel_name" in "OpenBSD"*) - mem_used="$(vmstat | awk 'END{printf $4}')" - mem_used="$((${mem_used/M} / 1024))" + mem_used="$(vmstat | awk 'END{printf $3}')" + mem_used="${mem_used/M}" ;; + *) mem_used="$((mem_total - mem_free))" ;; esac ;;