From 8ebf11d72e8ea78c41534971215de230dc31e8a6 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 faba3b08..d75bf137 100644 --- a/src/iec61850/server/mms_mapping/reporting.c +++ b/src/iec61850/server/mms_mapping/reporting.c @@ -942,7 +942,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; @@ -3862,7 +3862,6 @@ processEventsForReport(ReportControl* rc, uint64_t currentTimeInMs) rc->nextIntgReportTime = currentTimeInMs + rc->intgPd; } } - } } }