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 30adb2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions blocklib/timing/test/qa_timing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const boost::ut::suite TimingTests = [] {
timing.injectEvent(Timing::Event{5000, 0x1234, 0x12}, timing.currentTimeTAI());
std::this_thread::sleep_for(20ms);
timing.process();
auto data = reader.get();
auto data = reader.get(reader.available());
expect(data.size() == 2_ul);
expect(data[0].id() == 0x10);
expect(data[1].param() == 0x12);
Expand All @@ -32,7 +32,7 @@ const boost::ut::suite TimingTests = [] {
timing.injectEvent(Timing::Event{2000, 0x10, 0x20}, timing.currentTimeTAI());
timing.injectEvent(Timing::Event{5000, 0x1234, 0x12}, timing.currentTimeTAI());
timing.process();
auto data = reader.get();
auto data = reader.get(reader.available());
expect(data.size() == 2_ul);
expect(data[0].id() == 0x10);
expect(data[1].param() == 0x12);
Expand Down

0 comments on commit 30adb2c

Please sign in to comment.