Skip to content

Commit 76f3f90

Browse files
author
mreishman
committed
small js change
1 parent 4dd713f commit 76f3f90

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

core/js/run.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ function pollInner(data)
634634
{
635635
var currentTime = performance.now();
636636
totalTimeOfAllTests.push(Math.round((currentTime - _data["timeStart"][i])/1000));
637+
if(totalTimeOfAllTests.length > 100)
638+
{
639+
totalTimeOfAllTests.shift();
640+
}
637641
if(document.getElementById(_data["id"][i]))
638642
{
639643
//update percent

settings/changelog.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ <h2>Changelog</h2>
1212
<li>
1313
Added refresh next to iframe in tests to refresh if video 404 on first load
1414
</li>
15+
<li>
16+
Reduced size of array for generating time estimates. (only from last 100 tests now)
17+
</li>
1518
</ul>
1619
</li>
1720
</ul>

0 commit comments

Comments
 (0)