Fix linux tracing with long pids.

This commit is contained in:
Bartosz Taudul 2020-02-23 18:23:53 +01:00
parent 0fa1d25d98
commit 24cd73e366

View File

@ -663,9 +663,10 @@ ssize_t getline(char **buf, size_t *bufsiz, FILE *fp)
static void HandleTraceLine( const char* line ) static void HandleTraceLine( const char* line )
{ {
line += 24; line += 23;
while( *line != '[' ) line++;
line++;
const auto cpu = (uint8_t)ReadNumber( line ); const auto cpu = (uint8_t)ReadNumber( line );
line++; // ']' line++; // ']'
while( *line == ' ' ) line++; while( *line == ' ' ) line++;