diff options
author | Dan Timoney <dtimoney@att.com> | 2018-12-28 02:34:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-12-28 02:34:22 +0000 |
commit | a83c15285866363bae0830362cdea73a255021a4 (patch) | |
tree | 86b9cc102b618fa47507b92f726c0b41b0e31eea | |
parent | e767eee707210d661b98a851046775001623989c (diff) | |
parent | 93a61abf96ac8f4432a19f99ca5ab7a92e22d368 (diff) |
Merge "fixed sonar issue in PollingWorker.java"
-rw-r--r-- | dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java index 905944b1..454af02b 100644 --- a/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java +++ b/dblib/provider/src/main/java/org/onap/ccsdk/sli/core/dblib/pm/PollingWorker.java @@ -62,7 +62,7 @@ public class PollingWorker implements Runnable { interval = Long.parseLong((ctxprops == null || ctxprops.getProperty("org.onap.ccsdk.dblib.pm.interval") == null) ? "60" : (String) ctxprops.getProperty("org.onap.ccsdk.dblib.pm.interval")); // '0' bucket is to count exceptions - String sampling[] = ((ctxprops == null || ctxprops.getProperty("org.onap.ccsdk.dblib.pm.sampling") == null) + String[] sampling = ((ctxprops == null || ctxprops.getProperty("org.onap.ccsdk.dblib.pm.sampling") == null) ? "0,2,5,10,20,50,100" : (String) ctxprops.getProperty("org.onap.ccsdk.dblib.pm.sampling")).split(","); if (enabled) { |