Commit d2a1e125 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Do not print logs whose timestamp is equal to the last timestamp seen (#7827)

If the tool is started immediately after a previous run of the tool, then
the most recent log timestamp may come from the previous run's logs.
The new instance of the tool should not print those logs.

This was happening during runs of the microbenchmark script.
parent 959db13c
......@@ -628,7 +628,7 @@ class _AdbLogReader extends DeviceLogReader {
if (_timeOrigin != null) {
final String timestamp = timeMatch.group(0);
DateTime time = _adbTimestampToDateTime(timestamp);
if (time.isBefore(_timeOrigin)) {
if (!time.isAfter(_timeOrigin)) {
// Ignore log messages before the origin.
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment