On Wed, Apr 07, 2021 at 04:43:21PM +0800, Cao Xueliang wrote:
On Wed, Apr 07, 2021 at 04:10:10PM +0800, Li Yuanchao wrote:
Make the step to change priority of repo bigger, so bad repos would be put behind faster.
Signed-off-by: Li Yuanchao lyc163mail@163.com
lib/git_mirror.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb index b543f02..60a4b76 100644 --- a/lib/git_mirror.rb +++ b/lib/git_mirror.rb @@ -481,7 +481,7 @@ end
# main thread class MirrorMain
- WEEK_SECONDS = 604800
- MONTH_SECONDS = 2592000
MONTH_SECONDS => STEP_SECONDS then you just set the STEP_SECONDS and no need change it where you use it.
ok
Thanks, Yuanchao