mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-18 09:57:13 +00:00
Memory: [Haiku] Simpler memory command
This commit is contained in:
2
neofetch
2
neofetch
@@ -1125,7 +1125,7 @@ getmemory() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Haiku")
|
"Haiku")
|
||||||
memtotal=$(($(sysinfo -mem | head -n1 | cut -d'/' -f3 | tr -d ' ' | tr -d ')') / 1024 / 1024))
|
memtotal="$(($(sysinfo -mem | awk -F '\\/ |)' '{print $2; exit}') / 1024 / 1024))"
|
||||||
memused="$(sysinfo -mem | awk -F '\\/|)' '{print $2; exit}')"
|
memused="$(sysinfo -mem | awk -F '\\/|)' '{print $2; exit}')"
|
||||||
memused="$((${memused/max} / 1024 / 1024))"
|
memused="$((${memused/max} / 1024 / 1024))"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user