mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Use the right units in setting the alarm delay.
bug 308832, r=dmose
This commit is contained in:
parent
e628680727
commit
63b6ca598d
@ -331,7 +331,8 @@ calAlarmService.prototype = {
|
||||
};
|
||||
|
||||
if ((alarmTime.compare(now) >= 0 && alarmTime.compare(this.mRangeEnd) <= 0) || skipCheck) {
|
||||
var timeout = alarmTime.subtractDate(now).inSeconds;
|
||||
// delay is in msec, so don't forget to multiply
|
||||
var timeout = alarmTime.subtractDate(now).inSeconds * 1000;
|
||||
this.mEvents[aItem.id] = newTimerWithCallback(callbackObj, timeout, false);
|
||||
dump("adding alarm timeout (" + timeout + ") for " + aItem + " at " + aItem.alarmTime + "\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user