Changeset 10181 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2016-05-11T04:44:00+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r9995 r10181 76 76 77 77 public static final long DEFAULT_MAXTIME = -1L; 78 public static final long DAYS = 24 *60*60; // factor to get caching time in days78 public static final long DAYS = 24L*60L*60L; // factor to get caching time in days 79 79 80 80 private final Map<String, String> httpHeaders = new ConcurrentHashMap<>(); -
trunk/src/org/openstreetmap/josm/io/MessageNotifier.java
r8846 r10181 96 96 Main.info(tr("{0} not available (offline mode)", tr("Message notifier"))); 97 97 } else if (!isRunning() && interval > 0 && isUserEnoughIdentified()) { 98 task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, interval * 60 , TimeUnit.SECONDS);98 task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, interval * 60L, TimeUnit.SECONDS); 99 99 Main.info("Message notifier active (checks every "+interval+" minute"+(interval > 1 ? "s" : "")+')'); 100 100 } -
trunk/src/org/openstreetmap/josm/io/OsmServerWriter.java
r10001 r10181 68 68 } 69 69 double uploadsPerMs = (double) progress / elapsed; 70 double uploadsLeft = listSize - progress;70 double uploadsLeft = (double) listSize - progress; 71 71 long msLeft = (long) (uploadsLeft / uploadsPerMs); 72 72 long minutesLeft = msLeft / MSECS_PER_MINUTE;
Note: See TracChangeset
for help on using the changeset viewer.