From c3f0011ec9f09ba5481b54ba7edbc71cdd8ff33f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 4 Nov 2024 23:17:50 +0200 Subject: increase rate when there are soo posts scheduled --- cmd/gos/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') 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, -- cgit v1.2.3