Skip to content

Commit

Permalink
refactor(server): Remove redundant adjustment of the sampling interval
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Dec 8, 2023
1 parent 99482e2 commit 110a8b7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/server/ua_services_monitoreditem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 110a8b7

Please sign in to comment.