summaryrefslogtreecommitdiffstats
path: root/datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java
diff options
context:
space:
mode:
Diffstat (limited to 'datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java')
-rw-r--r--datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java b/datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java
index 1e2931c..bd0b439 100644
--- a/datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java
+++ b/datacollector/src/main/java/org/onap/rapp/datacollector/service/PMService.java
@@ -13,6 +13,7 @@
package org.onap.rapp.datacollector.service;
+import java.math.BigInteger;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
@@ -67,8 +68,8 @@ public class PMService {
}
private long getTimeIntervalEndTime(int slot, int count, long startDate) {
- int timeIntervalMicrosec = slot * count * MICRO_SECONDS_OF_SECOND;
- return startDate + timeIntervalMicrosec;
+ BigInteger timeIntervalMicrosec = BigInteger.valueOf(slot).multiply(BigInteger.valueOf(count)).multiply(BigInteger.valueOf(MICRO_SECONDS_OF_SECOND));
+ return startDate + timeIntervalMicrosec.longValue();
}
private Map<String, List<Event>> groupByCell(List<EventAPI> events) {