mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
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:
commit
1dffb542b8
@ -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()];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user