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
+2 -1
View File
@@ -59,7 +59,8 @@ public class PhotonEnergy extends Panel {
protected void onTimer(){
try{
int seconds = (int) (Double.valueOf(dvpAcqTime.getLabel().getText()) * table.getRowCount());
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("");
}