format time in sim abort window to two decimal places (currently it uses the default formatting, which means you can get a dozen or so decimal places)

This commit is contained in:
JoePfeiffer 2024-10-20 06:17:44 -06:00
parent 1d6b4359fc
commit fecaafe5b8

View File

@ -421,7 +421,7 @@ public class SimulationPlot extends Plot<FlightDataType, FlightDataBranch, Simul
}
abortString.append("\n")
.append(trans.get("simulationplot.abort.stage")).append(": ").append(branch.getName()).append("; ")
.append(trans.get("simulationplot.abort.time")).append(": ").append(abortEvent.getTime()).append(" s; ")
.append(trans.get("simulationplot.abort.time")).append(": ").append(String.format("%.2f", abortEvent.getTime())).append(" s; ")
.append(trans.get("simulationplot.abort.cause")).append(": ").append(((SimulationAbort) abortEvent.getData()).getMessageDescription());
}
}