mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-24 05:31:33 +00:00
add series only once (in scene initialization instead of on every tick) - thus fixing IAE
This commit is contained in:
@@ -51,6 +51,7 @@ public class VaultStatisticsController implements FxController {
|
||||
@FXML
|
||||
public void initialize() {
|
||||
window.setTitle(window.getTitle() + " - " + vault.get().getDisplayableName());
|
||||
lineGraph.getData().addAll(writeData, readData);
|
||||
}
|
||||
|
||||
public Vault getVault() {
|
||||
@@ -64,8 +65,5 @@ public class VaultStatisticsController implements FxController {
|
||||
}
|
||||
readData.getData().add(new XYChart.Data<Double, Double>((System.currentTimeMillis() - timeAtStartOfTracking) / 1000.0, ((getVault().getStats().bytesPerSecondReadProperty().get()) / 1024.0)));
|
||||
writeData.getData().add(new XYChart.Data<Double, Double>((System.currentTimeMillis() - timeAtStartOfTracking) / 1000.0, ((getVault().getStats().bytesPerSecondWrittenProperty().get()) / 1024.0)));
|
||||
lineGraph.getData().addAll(writeData, readData);
|
||||
//TODO
|
||||
//Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Duplicate series added
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user