forked from askmike/gekko
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
History database FIXED!!! (older data now works)
The problem was the distinction between: "Last minute of the day" compared to "how many minute are in a day" These are not the same concept. Last minute starts 60 seconds before midnight They are numbered 0 to 1439, total is still 1440 This bug is related to an "off by one" error I was really glad to see it was so easy to fix :)
- Loading branch information
Sarah White
committed
Jul 5, 2014
1 parent
d61cc6b
commit 4ef18a9
Showing
1 changed file
with
15 additions
and
8 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
4ef18a9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's at least one spot which needs the accurate value of 1440 minutes per day, but erroneously used 1439 instead.
The ambiguity between MINUTES_IN_DAY [versus] START_OF_LAST_MINUTE_IN_DAY has been resolved.
^ This code checks to make sure a historical data file had the entire 1440 minutes (24 hours) worth of data, but was getting confused because it had more than 1439 minutes, so returned a false negative thinking that "1440 minutes is too many"