Project

General

Profile

Revision a523e596

IDa523e596e4848646efb88ed36a6b67913adc675d
Parent bb809fe0
Child 017d9197

Added by Katja Luther over 2 years ago

fix progressmonitor handling

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/util/ProgressMonitorClientManager.java
153 153
                }
154 154
                serverTotalWorkDone = (int) remotingMonitor.getWorkDone();
155 155
                logger.info("Work done from start: " + serverTotalWorkDone);
156
                String percentage = new DecimalFormat("#.##").format(remotingMonitor.getPercentage());
156
                String percentage = "100";
157
                if (remotingMonitor.getTotalWork() != 0){
158
                    percentage = new DecimalFormat("#.##").format(remotingMonitor.getPercentage());
159
                }
160

  
157 161

  
158 162
                // set dialog text
159 163
                monitor.setTaskName(label + " " + percentage + "% done ");

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)