Optimized msResolution func performation

This commit is contained in:
utkarshcmu
2016-03-01 01:27:14 -08:00
parent 922b7c44ce
commit 75541b9cf0
+1 -1
View File
@@ -172,7 +172,7 @@ export default class TimeSeries {
isMsResolutionNeeded() {
for (var i = 0; i<this.datapoints.length; i++) {
var timestamp = this.datapoints[i][0].toString();
if (timestamp.length === 13 && parseInt(timestamp.substring(10,13)) !== 0) {
if (timestamp.length === 13 && (timestamp % 1000) !== 0) {
return true;
}
}