fix swapUsed calculation in memory-metrics.rb

I'm not a ruby programmer but looking at this code it appears this is a bug