From bef4245695fbc60cfbe22ae773a3799cf81371b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Poderoso?= <120394830+JesusPoderoso@users.noreply.github.com> Date: Thu, 17 Oct 2024 12:53:08 +0200 Subject: [PATCH] Adjust XML snippets to meet QoS constraints (#934) * Refs #21908: Adjust XML snippets to meet QoS constraints Signed-off-by: eProsima * Refs #21908: ARS - Revert unnecessary changes Signed-off-by: eProsima * Refs #21908: ARS - Add missing snippet change Signed-off-by: eProsima --------- Signed-off-by: eProsima (cherry picked from commit d60571d5be77ab0a2c6d0b6f789b45e174334862) --- code/DDSCodeTester.cpp | 6 +++--- code/XMLTester.xml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/DDSCodeTester.cpp b/code/DDSCodeTester.cpp index 683e3d59b..fe74f43b9 100644 --- a/code/DDSCodeTester.cpp +++ b/code/DDSCodeTester.cpp @@ -4288,13 +4288,13 @@ void dds_qos_examples() // This example uses a DataWriter, but it can also be applied to DataReader and Topic entities DataWriterQos writer_qos; // The ResourceLimitsQosPolicy is constructed with max_samples = 5000 by default - // Change max_samples to 200 - writer_qos.resource_limits().max_samples = 200; + // Change max_samples to 2000 + writer_qos.resource_limits().max_samples = 2000; // The ResourceLimitsQosPolicy is constructed with max_instances = 10 by default // Change max_instances to 20 writer_qos.resource_limits().max_instances = 20; // The ResourceLimitsQosPolicy is constructed with max_samples_per_instance = 400 by default - // Change max_samples_per_instance to 100 as it must be lower than max_samples + // Change max_samples_per_instance to 100 writer_qos.resource_limits().max_samples_per_instance = 100; // The ResourceLimitsQosPolicy is constructed with allocated_samples = 100 by default // Change allocated_samples to 50 diff --git a/code/XMLTester.xml b/code/XMLTester.xml index fc95fa5bc..ea249964c 100644 --- a/code/XMLTester.xml +++ b/code/XMLTester.xml @@ -3621,7 +3621,7 @@ - 200 + 2000 20 100 50 @@ -3632,7 +3632,7 @@ - 200 + 2000 20 100 50