forked from OpenTSDB/opentsdb
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix caching of requests with relative end time.
The logic to determine whether a cache file was stale was wrong when the end time was relative. More specifically, as long as the `end' parameter was given, the cached file wouldn't be regenerated. Also the mtime of the cached file was compared against the end time of the request instead of being compared to the current time to determine how old the file is. Change-Id: I77b810b26566f6b1fa9fc3bfffc1b862d16aa660
- Loading branch information
Showing
1 changed file
with
10 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters