Skip to content

Commit

Permalink
[Updater]Use sensible default time between checks (#17318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Apr 1, 2022
1 parent 95dcbb1 commit 12282a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner/UpdateUtils.cpp
Expand Up @@ -154,7 +154,7 @@ void PeriodicUpdateWorker()
for (;;)
{
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())
{
int64_t last_checked_minutes_ago = timeutil::diff::in_minutes(timeutil::now(), *state.githubUpdateLastCheckedDate);
Expand Down

0 comments on commit 12282a8

Please sign in to comment.