client/js/tweetsource.js
changeset 43 d63529bd67ad
parent 42 6cba3a02a1a1
child 44 02971f8dcaa5
equal deleted inserted replaced
42:6cba3a02a1a1 43:d63529bd67ad
   214 
   214 
   215 Btv_TweetQueueManager = function(_tweetArray, _callback) {
   215 Btv_TweetQueueManager = function(_tweetArray, _callback) {
   216     this.tweetArray = _tweetArray;
   216     this.tweetArray = _tweetArray;
   217     this.majorInterval = 10000; // Time slices for calculating the minor Interval setting
   217     this.majorInterval = 10000; // Time slices for calculating the minor Interval setting
   218     this.minimumInterval = 1000; // Safe limit to avoid tweets going to the wrong column
   218     this.minimumInterval = 1000; // Safe limit to avoid tweets going to the wrong column
   219     this.initialBuffer = 30000; // don't start with empty columns, but show the tweets of the last 30 seconds
   219     this.initialBuffer = 120000; // don't start with empty columns, but show the tweets of the last 120 seconds
   220     this.waitIfNoTweets = 2000;
   220     this.waitIfNoTweets = 2000;
   221     this.callback = _callback;
   221     this.callback = _callback;
   222     this.lastEndTime = new Date().valueOf() - this.initialBuffer;
   222     this.lastEndTime = new Date().valueOf() - this.initialBuffer;
   223     this.isPaused = false;
   223     this.isPaused = false;
   224     this.onMajorInterval();
   224     this.onMajorInterval();