Do not cast maxMem field to int since it is a string like 300M

Change-Id: I9a1bb9677b75e8377165d38f14723c625a08c373