Merge "Multiply the total memory by mem_unit"

This commit is contained in:
Jing Ji
2020-04-03 23:20:24 +00:00
committed by Gerrit Code Review

View File

@@ -641,7 +641,7 @@ static jlong android_os_Process_getTotalMemory(JNIEnv* env, jobject clazz)
return -1; return -1;
} }
return si.totalram; return static_cast<jlong>(si.totalram) * si.mem_unit;
} }
/* /*