Skip to content

Commit

Permalink
Fix the product-refresh setting check for the new default of 24h (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
froesef authored Jun 14, 2023
1 parent d6706bf commit d515896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fastly-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func main() {
level.Warn(logger).Log("msg", "-product-refresh cannot be shorter than 10m; setting it to 10m")
productRefresh = 10 * time.Minute
}
if productRefresh > 1*time.Hour {
if productRefresh > 24*time.Hour {
level.Warn(logger).Log("msg", "-product-refresh cannot be longer than 24h; setting it to 24h")
productRefresh = 24 * time.Hour
}
Expand Down

0 comments on commit d515896

Please sign in to comment.