Convert memory usage to megabytes