Correct memory percentage calculation