Skip to content

Commit

Permalink
Merge pull request #119 from qwertwwwe/master
Browse files Browse the repository at this point in the history
fix max_value_age_secs config doesn't work
  • Loading branch information
jranson authored Jan 31, 2019
2 parents 8454f06 + b94c4d9 commit 85a04ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func (t *TricksterHandler) originRangeProxyHandler(cacheKey string, originRangeR
}

// Prune any old points based on retention policy
ctx.Matrix.cropToRange(ctx.Time-ctx.Origin.MaxValueAgeSecs, 0)
ctx.Matrix.cropToRange(int64(ctx.Time-ctx.Origin.MaxValueAgeSecs)*1000, 0)

// If it's not a full cache hit, we want to write this back to the cache
if ctx.CacheLookupResult != crHit {
Expand Down

0 comments on commit 85a04ba

Please sign in to comment.