[Tables] Default UTC time system if available and none others defined

This commit is contained in:
Henry
2017-01-25 15:41:08 -08:00
parent 6cd99efbb9
commit ef8efbd53d
3 changed files with 21 additions and 4 deletions

View File

@ -84,7 +84,7 @@ define(
};
TelemetryCollection.prototype.inBounds = function (element) {
var noBoundsDefined = !this.lastBounds || (!this.lastBounds.start && !this.lastBounds.end);
var noBoundsDefined = !this.lastBounds || (this.lastBounds.start === undefined && this.lastBounds.end === undefined);
var withinBounds =
_.get(element, this.sortField) >= this.lastBounds.start &&
_.get(element, this.sortField) <= this.lastBounds.end;
@ -114,7 +114,7 @@ define(
array = this.highBuffer;
}
} else {
array = this.highBuffer;
array = this.telemetry;
}
// If out of bounds low, disregard data

View File

@ -391,7 +391,7 @@ define(
getDomainObjects()
.then(filterForTelemetry)
.then(this.loadColumns)
//.then(this.subscribeToNewData)
.then(this.subscribeToNewData)
.then(this.getHistoricalData)
.catch(error)
};