From 5ffd5149b4224cffd7642832c6070366b0956db5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 Dec 2017 19:25:54 +1100 Subject: [PATCH] memory [openbsd]: Fix crash --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 92890228..cc992c4b 100755 --- a/neofetch +++ b/neofetch @@ -1411,7 +1411,7 @@ get_memory() { # Mem used. case "$kernel_name" in - "OpenBSD"*) mem_used="$(($(vmstat | awk 'END{printf $4}') / 1024))" ;; + "OpenBSD"*) mem_used="$(($(vmstat | awk -F ' |M' 'END{printf $4}') / 1024))" ;; *) mem_used="$((mem_total - mem_free))" ;; esac ;;