From 110a8b7e27ef9d15f9501e339f1e0bccd50bd6ae Mon Sep 17 00:00:00 2001 From: Julius Pfrommer Date: Sun, 26 Nov 2023 10:52:50 +0100 Subject: [PATCH] refactor(server): Remove redundant adjustment of the sampling interval --- src/server/ua_services_monitoreditem.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/server/ua_services_monitoreditem.c b/src/server/ua_services_monitoreditem.c index 23e24e01742..143613df827 100644 --- a/src/server/ua_services_monitoreditem.c +++ b/src/server/ua_services_monitoreditem.c @@ -513,14 +513,6 @@ Operation_CreateMonitoredItem(UA_Server *server, UA_Session *session, result->revisedQueueSize = newMon->parameters.queueSize; result->monitoredItemId = newMon->monitoredItemId; - /* If the sampling interval is negative (the sampling callback is called - * from within the publishing callback), return the publishing interval of - * the Subscription. Note that we only use the cyclic callback of the - * Subscription. So if the Subscription publishing interval is modified, - * this also impacts this MonitoredItem. */ - if(result->revisedSamplingInterval < 0.0 && cmc->sub) - result->revisedSamplingInterval = cmc->sub->publishingInterval; - UA_LOG_INFO_SUBSCRIPTION(server->config.logging, cmc->sub, "MonitoredItem %" PRIi32 " | " "Created the MonitoredItem "