Commit 6689c0e1 authored by Chris Lord's avatar Chris Lord
Browse files

Fix scheduling timed updates immediately when at time of update

parent a5b8a474
......@@ -232,7 +232,7 @@ function scheduleUpdateCheck(error) {
var minutes = now.getMinutes();
if (hours > conf.time.hours ||
(minutes > conf.time.minutes && hours === conf.time.hours)) {
(minutes >= conf.time.minutes && hours === conf.time.hours)) {
hours -= 24;
}
delay += (conf.time.hours - hours) * 60 * 60 * 1000;
......
{
"name": "git-auto-updater",
"version": "0.0.4",
"version": "0.0.5",
"description": "Keeps a git repository up-to-date",
"license": "MPL-2.0",
"author": {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment