[Plot] Support fixed duration

Support a fixed duration for plots, WTD-1273.
This commit is contained in:
Victor Woeltjen
2015-06-20 10:28:49 -07:00
parent a82fea2166
commit fbf682d5fa
3 changed files with 52 additions and 13 deletions

View File

@ -43,9 +43,9 @@ define(
var mid = Math.floor((min + max) / 2),
found = buffer[mid * 2];
// Collisions are not wanted
// On collisions, insert at same index
if (found === value) {
return -1;
return mid;
}
// Otherwise, if we're down to a single index,
@ -258,4 +258,4 @@ define(
return PlotLineBuffer;
}
);
);