diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-09-02 10:00:46 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-09-02 10:04:00 +0100 |
commit | 85c20a61edec5545bed58544f08f21c16853f205 (patch) | |
tree | cd29371e4643e87878850d3d259747c98a973186 | |
parent | 5ad9601043fa813da577f4dccdfd5af29708d28e (diff) |
Fix to allow disabling initial module delay in DMI stub
This fix is needed to disable initial module delay.
If initial module delay is set to zero, some first requests
will still fail due to comparison being 0 > 0 == false.
Issue-ID: CPS-2353
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I26869a146759312718c48f2a840234786b3ee229
-rw-r--r-- | dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/aop/ModuleInitialProcessAspect.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/aop/ModuleInitialProcessAspect.java b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/aop/ModuleInitialProcessAspect.java index 96f0b804..32dfeb85 100644 --- a/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/aop/ModuleInitialProcessAspect.java +++ b/dmi-stub/dmi-plugin-demo-and-csit-stub-service/src/main/java/org/onap/cps/ncmp/dmi/rest/stub/controller/aop/ModuleInitialProcessAspect.java @@ -94,7 +94,7 @@ public class ModuleInitialProcessAspect { } private boolean isInitialProcessingCompleted(long currentTimestamp, long firstRequestTimestamp) { - return currentTimestamp - firstRequestTimestamp > moduleInitialProcessingDelayMs; + return currentTimestamp - firstRequestTimestamp >= moduleInitialProcessingDelayMs; } private long calculateRemainingProcessingTime(long currentTimestamp, long firstRequestTimestamp) { |