Update name of LogReader::State::SetClockOffset
Also, run clang-format.
Change-Id: Icc9c689bc4d9c9abaf1962aab46389c56713b29c
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/logging/log_reader.cc b/aos/events/logging/log_reader.cc
index b2d0ed9..87ad72c 100644
--- a/aos/events/logging/log_reader.cc
+++ b/aos/events/logging/log_reader.cc
@@ -1226,7 +1226,7 @@
next_time + std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::duration<double>(
FLAGS_threaded_look_ahead_seconds)));
- state->SetClockOffset();
+ state->MaybeSetClockOffset();
state->Setup(next_time.time);
state->SetupStartupTimer();
});
@@ -2235,7 +2235,7 @@
}
}
-void LogReader::State::SetClockOffset() {
+void LogReader::State::MaybeSetClockOffset() {
if (node_event_loop_factory_ == nullptr) {
// If not running with simulated event loop, set the monotonic clock
// offset.