memory check: fix division by 0 when swap_total==0

Memory check fails when ``swap_total==0`` and invoked ``-s`` which is the default. This commit ensures we have valid data before rendering the results.