Commit 5ffd5149 authored by Dylan Araps's avatar Dylan Araps

memory [openbsd]: Fix crash

parent a53cbdbc
...@@ -1411,7 +1411,7 @@ get_memory() { ...@@ -1411,7 +1411,7 @@ get_memory() {
# Mem used. # Mem used.
case "$kernel_name" in 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))" ;; *) mem_used="$((mem_total - mem_free))" ;;
esac esac
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment