Changeset 31055 in osm


Ignore:
Timestamp:
2015-03-08T00:39:48+01:00 (9 years ago)
Author:
bastik
Message:

see #josm11193 - fix integer overflow (patch by wiktorn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmFileCacheTileLoader.java

    r31054 r31055  
    5151    // Default expire time (i.e. maximum age of cached tile before refresh).
    5252    // Used when the server does not send an expires or max-age value in the http header.
    53     protected static final long DEFAULT_EXPIRE_TIME = 1000 * 60 * 60 * 24 * 7; // 7 days
     53    protected static final long DEFAULT_EXPIRE_TIME = 1000L * 60 * 60 * 24 * 7; // 7 days
    5454    // Limit for the max-age value send by the server.
    55     protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000 * 60 * 60 * 24 * 28; // 4 weeks
     55    protected static final long EXPIRE_TIME_SERVER_LIMIT = 1000L * 60 * 60 * 24 * 28; // 4 weeks
    5656    // Absolute expire time limit. Cached tiles that are older will not be used,
    5757    // even if the refresh from the server fails.
Note: See TracChangeset for help on using the changeset viewer.