diff options
author | Ronan Keogh <ronan.keogh@ericsson.com> | 2018-09-24 16:35:37 +0100 |
---|---|---|
committer | Ronan Keogh <ronan.keogh@ericsson.com> | 2018-09-24 16:37:41 +0100 |
commit | 65d1d8df9cc905d813cfa45f3fbbe0cae4892919 (patch) | |
tree | 201e7f631e772e3e61ddebc869ebe441964147a0 /datarouter-prov/src/main/java | |
parent | b2e750843b6e7b109d09fc684282b65c72bc98d7 (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/src/main/java')
-rw-r--r-- | datarouter-prov/src/main/java/org/onap/dmaap/datarouter/reports/DailyLatencyReport.java | 2 |
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);
}
|