Skip to content

Commit

Permalink
Refresh profiles less often // ghuser-io/ghuser.io#190
Browse files Browse the repository at this point in the history
  • Loading branch information
lourot committed Jul 10, 2019
1 parent f5181a5 commit f013965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fetchBot/bot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function waitForJob {
break
fi

if [ "$(($lastRun + 48 * 60 * 60))" -le "$(now)" ]; then
if [ "$(($lastRun + 24 * 60 * 60))" -le "$(now)" ]; then
break
fi
sleep 60
Expand Down
2 changes: 1 addition & 1 deletion fetchUserDetailsAndContribs.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ optional arguments:
// side we always re-fetch at least the contributions of the last few days before the last
// time we fetched:
let since = githubContribs.stringToDate(userFile.contribs.fetched_at);
for (let i = 0; i < 7; ++i) {
for (let i = 0; i < 10; ++i) {
since = githubContribs.prevDay(since);
}
since = githubContribs.dateToString(since);
Expand Down

0 comments on commit f013965

Please sign in to comment.