Skip to content

Commit 14e8cf5

Browse files
committed
Refs #20738. Fix latency test
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
1 parent a2f4664 commit 14e8cf5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/performance/latency/LatencyTestSubscriber.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,10 @@ void LatencyTestSubscriber::LatencyDataReaderListener::on_data_available(
600600
if (sub->echo_)
601601
{
602602
// no bounce overload recorded
603-
reinterpret_cast<LatencyType*>(data)->bounce = 0;
603+
if (!sub->dynamic_types_)
604+
{
605+
reinterpret_cast<LatencyType*>(data)->bounce = 0;
606+
}
604607

605608
if (!sub->data_writer_->write(data))
606609
{

0 commit comments

Comments
 (0)