summaryrefslogtreecommitdiffstats
path: root/datarouter-prov
diff options
context:
space:
mode:
authorRonan Keogh <ronan.keogh@ericsson.com>2018-09-24 16:35:37 +0100
committerRonan Keogh <ronan.keogh@ericsson.com>2018-09-24 16:37:41 +0100
commit65d1d8df9cc905d813cfa45f3fbbe0cae4892919 (patch)
tree201e7f631e772e3e61ddebc869ebe441964147a0 /datarouter-prov
parentb2e750843b6e7b109d09fc684282b65c72bc98d7 (diff)
Fix DailyLatencyReport vulnerabilities
Change-Id: Ie19b953feab980954d463477b34805b5ea72133d Signed-off-by: Ronan Keogh <ronan.keogh@ericsson.com> Issue-ID: DMAAP-775
Diffstat (limited to 'datarouter-prov')
-rw-r--r--datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java
index 28740c0f..f848733e 100644
--- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java
+++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java
@@ -138,7 +138,7 @@ public class DailyLatencyReport extends ReportBase {
}
}
private long getPstart(String t) {
- if (t.indexOf('.') > 0)
+ if (t.indexOf('.') >= 0)
t = t.substring(0, t.indexOf('.'));
return Long.parseLong(t);
}