Enhanced used memory calculation for values displayed in G

I encountered errors with this plugin and figured out my system displayed G-values instead of the expected M-values for used memory readout. I simply fixed this by adding a conditional calculation.