summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/cli/throttle.go2
-rw-r--r--internal/state/state.go2
-rw-r--r--internal/version/version.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/cli/throttle.go b/internal/cli/throttle.go
index d285350..5241782 100644
--- a/internal/cli/throttle.go
+++ b/internal/cli/throttle.go
@@ -16,7 +16,7 @@ const (
defaultSyncInterval = 24 * time.Hour
throttleMinDays = 60
throttleMaxDays = 120
- recentDays = 7
+ recentDays = 17
)
func loadSyncState(workDir string) (*state.Manager, *state.State, error) {
diff --git a/internal/state/state.go b/internal/state/state.go
index 4d5f197..4cae156 100644
--- a/internal/state/state.go
+++ b/internal/state/state.go
@@ -73,7 +73,7 @@ func (s *State) HasRunWithinWeek() bool {
if s.LastBatchRun.IsZero() {
return false
}
- return time.Since(s.LastBatchRun) < 7*24*time.Hour
+ return time.Since(s.LastBatchRun) < 17*24*time.Hour
}
// UpdateBatchRunTime updates the last batch run timestamp to now
diff --git a/internal/version/version.go b/internal/version/version.go
index 15929ce..5be3a9e 100644
--- a/internal/version/version.go
+++ b/internal/version/version.go
@@ -7,7 +7,7 @@ import (
var (
// Version is the current version of gitsyncer
- Version = "0.15.6"
+ Version = "0.15.7"
// GitCommit is the git commit hash at build time
GitCommit = "unknown"