Ignore:
Timestamp:
2016-11-20T17:33:33+01:00 (7 years ago)
Author:
simon04
Message:

see #13376 - Use TimeUnit instead of combinations of 1000/60/60/24

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MessageNotifier.java

    r10627 r11288  
    9393            Main.info(tr("{0} not available (offline mode)", tr("Message notifier")));
    9494        } else if (!isRunning() && interval > 0 && isUserEnoughIdentified()) {
    95             task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, interval * 60L, TimeUnit.SECONDS);
     95            task = EXECUTOR.scheduleAtFixedRate(WORKER, 0, TimeUnit.MINUTES.toSeconds(interval), TimeUnit.SECONDS);
    9696            Main.info("Message notifier active (checks every "+interval+" minute"+(interval > 1 ? "s" : "")+')');
    9797        }
Note: See TracChangeset for help on using the changeset viewer.