Merge "Multiply the total memory by mem_unit" am: 2bded37dfc
Change-Id: I282eaeab036836f2a45e6d237e76119650e95306
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