mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Updater]Use sensible default time between checks (#17318)
This commit is contained in:
@@ -154,7 +154,7 @@ void PeriodicUpdateWorker()
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
auto state = UpdateState::read();
|
auto state = UpdateState::read();
|
||||||
int64_t sleep_minutes_till_next_update = 0;
|
int64_t sleep_minutes_till_next_update = UPDATE_CHECK_AFTER_FAILED_INTERVAL_MINUTES;
|
||||||
if (state.githubUpdateLastCheckedDate.has_value())
|
if (state.githubUpdateLastCheckedDate.has_value())
|
||||||
{
|
{
|
||||||
int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.githubUpdateLastCheckedDate);
|
int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.githubUpdateLastCheckedDate);
|
||||||
|
|||||||
Reference in New Issue
Block a user