Merge "Multiply the total memory by mem_unit" into rvc-dev

This commit is contained in:
Jing Ji
2020-04-04 03:45:38 +00:00
committed by Android (Google) Code Review

View File

@@ -696,7 +696,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;
}
/*