Closedown

This commit is contained in:
x03daop
2016-09-20 11:56:01 +02:00
parent e90f627d02
commit 48267a500a
5 changed files with 17 additions and 13 deletions

View File

@@ -67,7 +67,8 @@ public class HoloScan extends Panel {
(int)(Math.abs((Double)spinnerToPhi.getValue() - (Double)spinnerFromPhi.getValue()) / (Double)spinnerStepSizePhi.getValue() + 1) *
(int)(Math.abs((Double)spinnerToTheta.getValue() - (Double)spinnerFromTheta.getValue()) / (Double)spinnerStepSizeTheta.getValue() +1));
int seconds = (int) (Double.valueOf(dvpAcqTime.getLabel().getText()) * steps);
textTotalTime.setText(LocalTime.ofSecondOfDay(seconds).toString());
int hours= seconds / (60 * 60);
textTotalTime.setText(hours >= 24 ? hours+"h": LocalTime.ofSecondOfDay(seconds).toString());
} catch (Exception ex){
textTotalTime.setText("");
}