Skip to content

Commit

Permalink
[ML] Fixes expanding time span.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Oct 4, 2018
1 parent 84d85a9 commit 2f75c7f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ export function explorerChartsContainerServiceFactory(

if ((maxMs - minMs) < maxTimeSpan) {
// Expand out to cover as much as the requested time span as possible.
minMs = Math.max(earliestMs, maxMs - maxTimeSpan);
maxMs = Math.min(latestMs, minMs + maxTimeSpan);
minMs = Math.max(earliestMs, minMs - maxTimeSpan);
maxMs = Math.min(latestMs, maxMs + maxTimeSpan);
}

chartRange = { min: minMs, max: maxMs };
Expand Down

0 comments on commit 2f75c7f

Please sign in to comment.