Merge "logcat: test: tail_# occasional failures" am: e7b335b471
am: a1f43ebf89
am: e8b5dca8c2
Change-Id: I0a47af262457d7de1d35d1e2dabfaf80fb70e4be
This commit is contained in:
commit
994754fa2a
1 changed files with 2 additions and 2 deletions
|
@ -208,9 +208,9 @@ static char* fgetLongTime(char* buffer, size_t buflen, FILE* fp) {
|
|||
if ((*ep != '-') && (*ep != '.')) {
|
||||
continue;
|
||||
}
|
||||
// Find PID field
|
||||
// Find PID field. Look for ': ' or ':[0-9][0-9][0-9]'
|
||||
while (((ep = strchr(ep, ':'))) && (*++ep != ' ')) {
|
||||
;
|
||||
if (isdigit(ep[0]) && isdigit(ep[1]) && isdigit(ep[2])) break;
|
||||
}
|
||||
if (!ep) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue