Closedown
This commit is contained in:
@@ -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("");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user