Remove OpenBSD detection from FreeBSD memory function
This commit is contained in:
parent
030263465f
commit
36ca05dba5
5
neofetch
5
neofetch
|
@ -1146,10 +1146,7 @@ getmemory () {
|
||||||
memtotal=${memtotal/\(}
|
memtotal=${memtotal/\(}
|
||||||
memtotal=${memtotal/MB\)}
|
memtotal=${memtotal/MB\)}
|
||||||
|
|
||||||
case "$distro" in
|
memfree=$(top -d 1 | awk '/Mem:/ {printf $10}')
|
||||||
"OpenBSD"*) memfree=$(top -d 1 | awk '/Real:/ {printf $6}') ;;
|
|
||||||
"FreeBSD"*) memfree=$(top -d 1 | awk '/Mem:/ {printf $10}') ;;
|
|
||||||
esac
|
|
||||||
memfree=${memfree/M}
|
memfree=${memfree/M}
|
||||||
|
|
||||||
memused=$((memtotal - memfree))
|
memused=$((memtotal - memfree))
|
||||||
|
|
Reference in New Issue