Ensure mem_total is an int