Fixes bug when monitoring swap memory.
Simplify code by keeping memory/disk in megabytes.

Memory was kept in kilobytes, and disk in megabytes, but as a double.