Use the current boot count for *_start_time
Change-Id: I12951695d8112706ee6b1513ba6f8f4f65f4df2c
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/events/logging/log_reader.cc b/aos/events/logging/log_reader.cc
index 63eba05..e58ccd2 100644
--- a/aos/events/logging/log_reader.cc
+++ b/aos/events/logging/log_reader.cc
@@ -292,8 +292,7 @@
states_[configuration::GetNodeIndex(configuration(), node)].get();
CHECK(state != nullptr) << ": Unknown node " << FlatbufferToJson(node);
- // TODO(austin): Un-hard-code the 0 boot count.
- return state->monotonic_start_time(0);
+ return state->monotonic_start_time(state->boot_count());
}
realtime_clock::time_point LogReader::realtime_start_time(
@@ -302,8 +301,7 @@
states_[configuration::GetNodeIndex(configuration(), node)].get();
CHECK(state != nullptr) << ": Unknown node " << FlatbufferToJson(node);
- // TODO(austin): Un-hard-code the 0 boot count.
- return state->realtime_start_time(0);
+ return state->realtime_start_time(state->boot_count());
}
void LogReader::OnStart(std::function<void()> fn) {