general: Fixed issue on AIX.
This commit is contained in:
parent
aa8c6c55f6
commit
82cc8ebb6e
2
neofetch
2
neofetch
|
@ -1510,7 +1510,7 @@ get_memory() {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"AIX")
|
"AIX")
|
||||||
IFS=" " read -ra mem_stat <<< "$(svmon -G -O unit=MB)"
|
IFS=$'\n'"| " read -d "" -ra mem_stat <<< "$(svmon -G -O unit=MB)"
|
||||||
|
|
||||||
mem_total="${mem_stat[11]/.*}"
|
mem_total="${mem_stat[11]/.*}"
|
||||||
mem_free="${mem_stat[16]/.*}"
|
mem_free="${mem_stat[16]/.*}"
|
||||||
|
|
Reference in New Issue