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/MB\)}
|
||||
|
||||
case "$distro" in
|
||||
"OpenBSD"*) memfree=$(top -d 1 | awk '/Real:/ {printf $6}') ;;
|
||||
"FreeBSD"*) memfree=$(top -d 1 | awk '/Mem:/ {printf $10}') ;;
|
||||
esac
|
||||
memfree=$(top -d 1 | awk '/Mem:/ {printf $10}')
|
||||
memfree=${memfree/M}
|
||||
|
||||
memused=$((memtotal - memfree))
|
||||
|
|
Reference in New Issue