Improved graph and path splitting

This commit is contained in:
Filip Znachor 2023-05-07 22:33:38 +02:00
parent c7c28ef1f7
commit e7b7f77e0b
2 changed files with 2 additions and 2 deletions

View file

@ -383,7 +383,7 @@ public class Chess {
plot.setRangeGridlinePaint(Color.GRAY);
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setDefaultItemLabelGenerator(
new StandardCategoryItemLabelGenerator("{2}", NumberFormat.getInstance())
new StandardCategoryItemLabelGenerator("{2}s", NumberFormat.getInstance())
);
renderer.setDefaultItemLabelFont(new Font("Arial", Font.PLAIN, 9));
renderer.setDefaultItemLabelsVisible(true);

View file

@ -51,7 +51,7 @@ public class Stockfish {
public static String findBinary() {
ArrayList<String> paths = new ArrayList<>();
paths.add(".");
for (String path : System.getenv("PATH").split(":")) {
for (String path : System.getenv("PATH").split(File.pathSeparator)) {
paths.add(path);
}
for (String path : paths) {