From 2d047aae7e5d9e50ccd14233719df5b11c4dece9 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 12 Jun 2021 23:35:52 -0700 Subject: [PATCH] nicer replay prints old-commit-hash: 060b5caf1bfe38dfc28114b167ee578afe650f62 --- selfdrive/ui/replay/replay.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/replay/replay.cc b/selfdrive/ui/replay/replay.cc index cf3944cc45..62be37d410 100644 --- a/selfdrive/ui/replay/replay.cc +++ b/selfdrive/ui/replay/replay.cc @@ -206,7 +206,7 @@ void Replay::stream() { uint64_t t0 = route_start_ts + (seek_ts * 1e9); seek_ts = -1; - qDebug() << "unlogging at" << (t0 - route_start_ts) / 1e9; + qDebug() << "unlogging at" << int((t0 - route_start_ts) / 1e9); // wait until we have events within 1s of the current time auto eit = events.lowerBound(t0); @@ -230,7 +230,7 @@ void Replay::stream() { float timestamp = (tm - route_start_ts)/1e9; if (std::abs(timestamp - last_print) > 5.0) { last_print = timestamp; - qInfo() << "at " << last_print; + qInfo() << "at " << int(last_print) << "s"; } // keep time