mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fix String.format to use Locale.ROOT in RestRecoveryAction
This commit is contained in:
parent
5d90abf701
commit
01d51ef434
@ -34,10 +34,7 @@ import org.elasticsearch.rest.*;
|
||||
import org.elasticsearch.rest.action.support.RestTable;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.*;
|
||||
|
||||
import static org.elasticsearch.rest.RestRequest.Method.GET;
|
||||
|
||||
@ -137,7 +134,7 @@ public class RestRecoveryAction extends BaseRestHandler {
|
||||
if (primarySize == null) {
|
||||
t.addCell("NaN");
|
||||
} else {
|
||||
t.addCell(String.format("%1.1f%%", 100.0 * (float)replicaSize / primarySize));
|
||||
t.addCell(String.format(Locale.ROOT, "%1.1f%%", 100.0 * (float)replicaSize / primarySize));
|
||||
}
|
||||
t.endRow();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user