Update check_memory.sh

fix typo making a bug in display