Ignore:
Timestamp:
07/22/06 05:28:37 (18 years ago)
Author:
Nicholas Riley
Message:

Fix bug with alarm update interval; update tooltip when time changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/Alarm.java

    r273 r275  
    251251    public int getSecondsUntilNextIntervalStringUpdate() {
    252252        int i = remainingInterval();
    253         if (i == 1)
     253        if (i <= 1)
    254254            return 0;
    255255        if (i <= 60)
    256256            return 1;
    257         if (i <= 24 * 60 * 60)
    258             return i % 60;
    259         return i % 3600; // update at least once an hour, regardless
     257        if (i <= 24 * 60 * 60) {
     258            i %= 60;
     259            return (i == 0 ? 60 : i);
     260        }
     261        i %= 3600;
     262        return (i == 0 ? 3600 : i);
    260263    }
    261264
Note: See TracChangeset for help on using the changeset viewer.