am 45838de9: fix Uss accounting in getPssPid()

* commit '45838de942b87150fc3b03a8b943841a8647fd81':
  fix Uss accounting in getPssPid()
This commit is contained in:
Iliyan Malchev
2014-12-12 00:34:35 +00:00
committed by Android Git Automerger

View File

@@ -528,8 +528,8 @@ static jlong android_os_Debug_getPssPid(JNIEnv *env, jobject clazz, jint pid, jl
c++;
}
pss += atoi(c);
} else if (strncmp(line, "Private_Clean:", 14)
|| strncmp(line, "Private_Dirty:", 14)) {
} else if (strncmp(line, "Private_Clean:", 14) == 0
|| strncmp(line, "Private_Dirty:", 14) == 0) {
char* c = line + 14;
while (*c != 0 && (*c < '0' || *c > '9')) {
c++;