Memory: [Haiku] Simpler memory command
This commit is contained in:
parent
3eea0891e0
commit
306fe9caa6
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1125,7 +1125,7 @@ getmemory() {
|
|||
;;
|
||||
|
||||
"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="$((${memused/max} / 1024 / 1024))"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue