Multiply the total memory by mem_unit
Bug: 153107152 Test: Manual Change-Id: If268b1ea63d7166158ac546dd8a1f445eb3d09f9
This commit is contained in:
@@ -641,7 +641,7 @@ static jlong android_os_Process_getTotalMemory(JNIEnv* env, jobject clazz)
|
||||
return -1;
|
||||
}
|
||||
|
||||
return si.totalram;
|
||||
return static_cast<jlong>(si.totalram) * si.mem_unit;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user