Changeset 8490 in josm for trunk/src


Ignore:
Timestamp:
2015-06-16T20:36:21+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #11567 - Exception when running validator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/Test.java

    r8470 r8490  
    183183        progressMonitor = null;
    184184        if (startTime > 0) {
    185             long elapsedTime = System.currentTimeMillis() - startTime;
     185            // fix #11567 where elapsedTime is < 0
     186            long elapsedTime = Math.max(0, System.currentTimeMillis() - startTime);
    186187            Main.debug(tr("Test ''{0}'' completed in {1}", getName(), Utils.getDurationString(elapsedTime)));
    187188        }
Note: See TracChangeset for help on using the changeset viewer.