in src/main/java/com/aliyuncs/kms/secretsmanager/client/utils/PingUtils.java [62:75]
private static double getCheckResult(String line, Pattern pattern) {
Matcher matcher = pattern.matcher(line);
while (matcher.find()) {
if (matcher.groupCount() == 2) {
if (StringUtils.isEmpty(matcher.group(2))) {
return Double.parseDouble(matcher.group(1));
}
return Double.parseDouble(matcher.group(1) + matcher.group(2));
} else {
return Double.parseDouble(matcher.group(1));
}
}
return -1;
}