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

@@ -212,7 +212,8 @@ public class XPSSpectrum extends Panel {
steps = Math.max(1, (int)valueIterations.getValue());
}
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){
getLogger().log(Level.FINE, null, ex);