Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CE changes for Winsparkle DLL #1

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Change sleep time to update check interval
jaredburkeen committed Sep 26, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 125cc73cd5ad16ba861f5aa2c8f207aaa978baa1
4 changes: 1 addition & 3 deletions src/updatechecker.cpp
Original file line number Diff line number Diff line change
@@ -230,8 +230,6 @@ void UpdateChecker::Run()
{
if (checkUpdates)
{
static const time_t ONE_DAY = 60 * 60 * 24;

time_t lastCheck = 0;
Settings::ReadConfigValue("LastCheckTime", lastCheck);
const time_t currentTime = time(NULL);
@@ -245,7 +243,7 @@ void UpdateChecker::Run()
}
}
// Check every 5 minutes
Sleep(300000);
Sleep(win_sparkle_get_update_check_interval());
}
}