From c7172003da405230bd785fd0211039958dc9c19a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 24 May 2021 12:31:34 +0200 Subject: [PATCH] fix traceOpts.startStamp --- html/planeObject.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/html/planeObject.js b/html/planeObject.js index 1e47aa3..5c6f16b 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -927,16 +927,15 @@ PlaneObject.prototype.processTrace = function() { end = legEnd; if (traceOpts.startStamp != null || traceOpts.endStamp != null) { - let startSet = false; for (let i = start; i < end; i++) { const timestamp = trace[i][0]; - if (!startSet && traceOpts.startStamp != null && timestamp <= traceOpts.startStamp) { - startSet = true; - start = i; + if (traceOpts.startStamp != null && timestamp < traceOpts.startStamp) { + start = i + 1; } if (traceOpts.endStamp != null && timestamp > traceOpts.endStamp) { end = i; + break; } } }