From dd3e2a6870d85eba60efa87d4200e0d1789a84b3 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Fri, 16 Sep 2022 14:31:34 +0100 Subject: [PATCH] - fixed - create multiple integrity reports in the same interval when integrity timeouts are aligned (LIB61850-323) --- src/iec61850/server/mms_mapping/reporting.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/iec61850/server/mms_mapping/reporting.c b/src/iec61850/server/mms_mapping/reporting.c index 48ca3b70..ba241699 100644 --- a/src/iec61850/server/mms_mapping/reporting.c +++ b/src/iec61850/server/mms_mapping/reporting.c @@ -928,7 +928,7 @@ static uint64_t getNextRoundedStartTime(uint64_t currentTime, uint64_t intgPd) { uint64_t modTime = currentTime % intgPd; - uint64_t delta = 0; + uint64_t delta = intgPd; if (modTime != 0) { delta = intgPd - modTime; @@ -3848,7 +3848,6 @@ processEventsForReport(ReportControl* rc, uint64_t currentTimeInMs) rc->nextIntgReportTime = currentTimeInMs + rc->intgPd; } } - } } }