diff options
| author | Paul Buetow <paul@buetow.org> | 2024-11-04 23:17:50 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-11-04 23:17:50 +0200 |
| commit | c3f0011ec9f09ba5481b54ba7edbc71cdd8ff33f (patch) | |
| tree | 98935b3d030c4dc0d5c49be94857c8355cb8e1a7 /cmd | |
| parent | 5c557a08db23b01e5a953f0503db1f705de666fa (diff) | |
increase rate when there are soo posts scheduled
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gos/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gos/main.go b/cmd/gos/main.go index a14ba57..8e9e4e8 100644 --- a/cmd/gos/main.go +++ b/cmd/gos/main.go @@ -25,6 +25,7 @@ func main() { platforms := flag.String("platforms", "Mastodon:500,LinkedIn:1000", "Platforms enabled plus their post size limits") target := flag.Int("target", 2, "How many posts per week are the target?") minQueued := flag.Int("minQueued", 4, "Minimum of queued items until printing a warn message!") + maxDaysQueued := flag.Int("maxDaysQueued", 365, "Maximum days worth of queued posts until target++ and pauseDays--") pauseDays := flag.Int("pauseDays", 3, "How many days until next post can be posted?") lookback := flag.Int("lookback", 30, "How many days look back in time for posting history") flag.Parse() @@ -40,6 +41,7 @@ func main() { Platforms: make(map[string]int), Target: *target, MinQueued: *minQueued, + MaxDaysQueued: *maxDaysQueued, PauseDays: *pauseDays, Lookback: time.Duration(*lookback) * time.Hour * 24, SecretsConfigPath: secretsConfigPath, |
