Handle log files not starting at the same time.
The monotonic clocks were assumed to be in sync. That isn't realistic.
This assumption leaked into how we kept the queues primed, and how the
event loop was initialized.
This isn't enough to actually replay in sync. We are assuming that the
realtime clocks are in sync and the monotonic clocks don't drift from
each other. That'll be good enough to get started, but not for long.
Change-Id: Ic18e31598f1a76edee0b0d5a2d7936deee1fbfec
diff --git a/aos/events/simulated_network_bridge.cc b/aos/events/simulated_network_bridge.cc
index 10ce37d..6b03b2f 100644
--- a/aos/events/simulated_network_bridge.cc
+++ b/aos/events/simulated_network_bridge.cc
@@ -109,10 +109,14 @@
// Pre-build up event loops for every node. They are pretty cheap anyways.
for (const Node *node : simulated_event_loop_factory->nodes()) {
- CHECK(event_loop_map_
- .insert({node, simulated_event_loop_factory->MakeEventLoop(
- "message_bridge", node)})
- .second);
+ auto it = event_loop_map_.insert(
+ {node,
+ simulated_event_loop_factory->MakeEventLoop("message_bridge", node)});
+
+ CHECK(it.second);
+
+ it.first->second->SkipTimingReport();
+ it.first->second->SkipAosLog();
}
for (const Channel *channel :