Merge pull request #2204 from jakemcdermott/fix-2190

job output window - use tail for max counter when it is greater than api counter
This commit is contained in:
Michael Abashian
2018-06-19 12:51:28 -04:00
committed by GitHub

View File

@@ -327,8 +327,9 @@ function SlidingWindowService ($q) {
this.getMaxCounter = () => {
const counter = this.api.getMaxCounter();
const tail = this.getTailCounter();
return Number.isFinite(counter) ? counter : this.getTailCounter();
return Number.isFinite(counter) ? Math.max(tail, counter) : tail;
};
this.getRange = () => [this.getHeadCounter(), this.getTailCounter()];