minor
authorKatja Luther <k.luther@bgbm.org>
Tue, 4 Jan 2022 09:20:54 +0000 (10:20 +0100)
committerKatja Luther <k.luther@bgbm.org>
Tue, 4 Jan 2022 09:22:35 +0000 (10:22 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/update/UpdateHandler.java

index a9b2567c1e22dabf250e2e2c47bc82eed9588758..03461b2f0603d104755a86ed7968c3f1f8e5b4af 100644 (file)
@@ -105,13 +105,14 @@ public class UpdateHandler {
                // check for updates, this causes I/O
                final IStatus status = operation.resolveModal(monitor);
                // failed to find updates (inform user and exit)
+               long actualTime = System.currentTimeMillis();
                if (status.getCode() == UpdateOperation.STATUS_NOTHING_TO_UPDATE) {
                    showMessage(shell, sync);
-                   long actualTime = System.currentTimeMillis();
                    logger.info("update resolved, but no updates available " + (actualTime - startTime) + "Status: " + status.toString());
                    return Status.CANCEL_STATUS;
                }
-               logger.info("update resolved " + System.currentTimeMillis() + "Status: " + status.toString());
+               
+               logger.info("update resolved " + (actualTime - startTime) + "Status: " + status.toString());
         }catch(Exception e){
                logger.warn( e.getStackTrace().toString());
                return Status.CANCEL_STATUS;