Fix a bug where 0 free swap space led to division by 0