Only fetch tweet data once at 37 minutes past the hour

It was triggering for every second at xx:37 (60 times), oops
This commit is contained in:
Donald Burr 2015-10-19 01:38:34 -07:00
parent c1001ba0fe
commit f9b3b05854

View file

@ -874,7 +874,7 @@ function run_timer()
}
// @sifen_trackbot updates come out at 36 minutes past the hour, fetch them at 37 minutes to allow for some slop
if (minute(now) == 37 || window.immediately_refresh_tier_cutoffs) {
if ((minute(now) == 37 && second(now) == 0) || window.immediately_refresh_tier_cutoffs) {
$("#tier_info_output_area").html("<h2>Updating tier cutoff data, please wait...</h2>");
twitterFetcher.fetch(config5);
window.immediately_refresh_tier_cutoffs = false;