Fixed OpenBSD mem_used value
This commit is contained in:
parent
c81e01405e
commit
96676ca4d5
5
neofetch
5
neofetch
|
@ -1466,9 +1466,10 @@ get_memory() {
|
||||||
# Mem used.
|
# Mem used.
|
||||||
case "$kernel_name" in
|
case "$kernel_name" in
|
||||||
"OpenBSD"*)
|
"OpenBSD"*)
|
||||||
mem_used="$(vmstat | awk 'END{printf $4}')"
|
mem_used="$(vmstat | awk 'END{printf $3}')"
|
||||||
mem_used="$((${mem_used/M} / 1024))"
|
mem_used="${mem_used/M}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) mem_used="$((mem_total - mem_free))" ;;
|
*) mem_used="$((mem_total - mem_free))" ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue