Skip to content

Conversation

@brayniac
Copy link
Contributor

Reported in #224, the interrupts sampler can get tripped up by
lines which do not match the expected keywords. This is a result of
using a while loop with continue expression that bypass clearing
the line buffer.

This PR addresses this issue by reimplementing the loop so that we
can clear the line buffer at the start of the loop. This approach
allows us to ensure the line buffer is empty without requiring us
to remember to clear the buffer immediately before a continue.

Reported in twitter#224, the interrupts sampler can get tripped up by
lines which do not match the expected keywords. This is a result of
using a while loop with continue expression that bypass clearing
the line buffer.

This PR addresses this issue by reimplementing the loop so that we
can clear the line buffer at the start of the loop. This approach
allows us to ensure the line buffer is empty without requiring us
to remember to clear the buffer immediately before a continue.
@brayniac brayniac merged commit b5981ca into twitter:master Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant