general: Fixed issue on AIX.

This commit is contained in:
Dylan Araps 2018-04-15 19:54:36 +10:00
parent aa8c6c55f6
commit 82cc8ebb6e
1 changed files with 1 additions and 1 deletions

View File

@ -1510,7 +1510,7 @@ get_memory() {
;;
"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_free="${mem_stat[16]/.*}"