Skip to content

Commit

Permalink
Adapt to graph-prototype API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
frankosterfeld committed Mar 7, 2024
1 parent 39dcf5e commit 4fafe77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocklib/timing/src/test-timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void showTimingEventTable(Timing &timing) {
ImGui::TableSetupColumn("##addToSchedule");

ImGui::TableHeadersRow();
auto data = event_reader.get();
auto data = event_reader.get(event_reader.available());

for (const auto &evt : std::ranges::reverse_view{data}) {
drawSnoopedEventTableRow(evt, timing);
Expand Down Expand Up @@ -636,7 +636,7 @@ class TimePlot {
explicit TimePlot(BufferT &_events) : snoopReader{_events.new_reader()} { }

void updateStreaming() {
auto newEvents = snoopReader.get();
auto newEvents = snoopReader.get(snoopReader.available());
if (startTime == 0 && !newEvents.empty()) {
startTime = newEvents[0].time;
}
Expand Down

0 comments on commit 4fafe77

Please sign in to comment.