Commit 75541b9c by utkarshcmu

Optimized msResolution func performation

parent 922b7c44
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment