mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
yocto_console_view: Fix mystery performance problem
We were pushing duplicate builder values into changes list which was causing angular to get rather upset, triggering console warnings and heavy CPU usage. Stop doing that. Also drop the pointless return value. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
eacbfed5b4
commit
a232d2c032
|
@ -465,7 +465,9 @@ class Console {
|
|||
change.caption = rev;
|
||||
}
|
||||
|
||||
return change.buildersById[build.builderid].builds.push(build);
|
||||
if (change.buildersById[build.builderid].builds.indexOf(build) == -1) {
|
||||
change.buildersById[build.builderid].builds.push(build);
|
||||
}
|
||||
}
|
||||
|
||||
makeFakeChange(revision, when_timestamp, comments) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user