aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/java
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-05-09 11:30:35 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-05-09 11:30:35 -0700
commit413e175d19e46ae7de47ed8199a530eca82e1771 (patch)
treeb905369e42bee683c18f2068730ae7c99bb586e8 /bpmn/MSOCommonBPMN/src/main/java
parentb1e5734ef566af5d49ba17d05ca0ab7b56d6666d (diff)
Fix WorkflowContext.getDelay() unit conversion
The duration numbers in getDelay() are all expressed in milliseconds; the call to TimeUnit.convert() is fixed to specify milliseconds. Change-Id: I6b466f7a40a05ebe4afb1c3c39fb862eef2ae40d Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'bpmn/MSOCommonBPMN/src/main/java')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContext.java b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContext.java
index 3d7e333fdf..93aa15c59a 100644
--- a/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContext.java
+++ b/bpmn/MSOCommonBPMN/src/main/java/org/openecomp/mso/bpmn/common/workflow/service/WorkflowContext.java
@@ -72,7 +72,7 @@ public class WorkflowContext implements Delayed {
@Override
public long getDelay(TimeUnit unit) {
// 0 or negative means this object is considered to be expired
- return unit.convert(startTime + timeout - System.currentTimeMillis(), unit);
+ return unit.convert(startTime + timeout - System.currentTimeMillis(), TimeUnit.MILLISECONDS);
}
/**