avoid division by zero on showing memory status