am 45838de9: fix Uss accounting in getPssPid()
* commit '45838de942b87150fc3b03a8b943841a8647fd81': fix Uss accounting in getPssPid()
This commit is contained in:
@@ -528,8 +528,8 @@ static jlong android_os_Debug_getPssPid(JNIEnv *env, jobject clazz, jint pid, jl
|
|||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
pss += atoi(c);
|
pss += atoi(c);
|
||||||
} else if (strncmp(line, "Private_Clean:", 14)
|
} else if (strncmp(line, "Private_Clean:", 14) == 0
|
||||||
|| strncmp(line, "Private_Dirty:", 14)) {
|
|| strncmp(line, "Private_Dirty:", 14) == 0) {
|
||||||
char* c = line + 14;
|
char* c = line + 14;
|
||||||
while (*c != 0 && (*c < '0' || *c > '9')) {
|
while (*c != 0 && (*c < '0' || *c > '9')) {
|
||||||
c++;
|
c++;
|
||||||
|
|||||||
Reference in New Issue
Block a user