mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Fix memory detection on OpenBSD
This commit is contained in:
2
fetch
2
fetch
@@ -641,7 +641,7 @@ getmemory () {
|
|||||||
memory="${memused}MB / ${memtotal}MB"
|
memory="${memused}MB / ${memtotal}MB"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"OpenBSd" | "BSD")
|
"OpenBSD" | "BSD")
|
||||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||||
memtotal=${memtotal/\(/}
|
memtotal=${memtotal/\(/}
|
||||||
memtotal=${memtotal/MB\)/}
|
memtotal=${memtotal/MB\)/}
|
||||||
|
Reference in New Issue
Block a user