Skip to content

Commit

Permalink
Merge pull request #184 from tstromberg/warn-age
Browse files Browse the repository at this point in the history
Add warn-age flag instead of determining automatically
  • Loading branch information
tstromberg authored Jul 13, 2020
2 parents dc0f24a + 4de7c10 commit 212bd7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var (

maxRefresh = flag.Duration("max-refresh", 60*time.Minute, "Maximum time between collection runs")
minRefresh = flag.Duration("min-refresh", 60*time.Second, "Minimum time between collection runs")
warnAge = flag.Duration("warn-age", 90*time.Minute, "Warn when the results are older than this")
)

func main() {
Expand Down Expand Up @@ -174,7 +175,7 @@ func main() {
BaseDirectory: findPath(*siteDir),
Updater: u,
Party: tp,
WarnAge: *maxRefresh * 4,
WarnAge: *warnAge,
Name: sn,
})

Expand Down

0 comments on commit 212bd7f

Please sign in to comment.