Skip to content

Commit

Permalink
Add warn-age flag instead of determining automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Jul 13, 2020
1 parent 582ef45 commit 4de7c10
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 4de7c10

Please sign in to comment.