Rma fixes

The first commit adjusts some formatting to match other code to match other sigar code style.

The second commit fixes a bug where we reference invalid memory by computing a negative array position.