Skip to content

Commit

Permalink
Merge branch 'patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Aug 24, 2011
2 parents 50e4a95 + 88f65d7 commit e4de48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chronos.js
Expand Up @@ -102,7 +102,7 @@ window["chronos"] = (function () {
// returns how many milliseconds are left till the next time it should be
// run.
function decrementTimeTillNext (task) {
return task.next -= (+new Date()) - task.lastTimeRan;
return task.next = task.timeout - ((+new Date()) - task.lastTimeRan);
}

// Return true if the task repeats multiple times, false if it is a task to
Expand Down Expand Up @@ -232,4 +232,4 @@ window["chronos"] = (function () {

};

}());
}());

0 comments on commit e4de48f

Please sign in to comment.