Skip to content

Commit

Permalink
Merge pull request #137 from OpenLiberty/gkwan-ibm-patch-2
Browse files Browse the repository at this point in the history
Revert to use \\s+
  • Loading branch information
gkwan-ibm authored Jan 13, 2021
2 parents 748af58 + baad535 commit 607c7f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private Map<String, Integer> getIntMetrics(List<String> metrics, String metricNa
Map<String, Integer> output = new HashMap<String, Integer>();
for (String metric : metrics) {
if (metric.startsWith(metricName)) {
String[] mSplit = metric.split("\\s+");
String[] mSplit = metric.split(" ");
String key = mSplit[0];
Integer value = Integer.parseInt(mSplit[mSplit.length - 1]);
output.put(key, value);
Expand Down

0 comments on commit 607c7f9

Please sign in to comment.