Move file availability check interval to class member

This commit is contained in:
Alex Liebowitz 2016-12-13 13:11:01 -05:00
parent 100dac0629
commit 177fa2cfa2

View file

@ -166,6 +166,7 @@ var MyFilesRow = React.createClass({
var MyFilesPage = React.createClass({ var MyFilesPage = React.createClass({
_fileTimeout: null, _fileTimeout: null,
_fileInfoCheckRate: 300,
_fileInfoCheckNum: 0, _fileInfoCheckNum: 0,
_filesOwnership: {}, _filesOwnership: {},
@ -233,7 +234,7 @@ var MyFilesPage = React.createClass({
} }
let newFilesAvailable; let newFilesAvailable;
if (!(this._fileInfoCheckNum % 300)) { if (!(this._fileInfoCheckNum % this._fileInfoCheckRate)) {
// Time to update file availability status // Time to update file availability status
newFilesAvailable = {}; newFilesAvailable = {};