Fixed Memory Calculation on Linux.