Skip to content

Commit 212bd7f

Browse files
authored
Merge pull request #184 from tstromberg/warn-age
Add warn-age flag instead of determining automatically
2 parents dc0f24a + 4de7c10 commit 212bd7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/server/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ var (
6969

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

7475
func main() {
@@ -174,7 +175,7 @@ func main() {
174175
BaseDirectory: findPath(*siteDir),
175176
Updater: u,
176177
Party: tp,
177-
WarnAge: *maxRefresh * 4,
178+
WarnAge: *warnAge,
178179
Name: sn,
179180
})
180181

0 commit comments

Comments
 (0)