Keep track of the number of unsupported steps

(cherry picked from commit 45ffe578b6)
This commit is contained in:
Eelco Dolstra
2020-03-26 15:26:12 +01:00
parent 4417f9f260
commit ccd046ca3d
4 changed files with 10 additions and 0 deletions

View File

@ -328,6 +328,8 @@ void State::abortUnsupported()
std::unordered_set<Step::ptr> aborted;
size_t count = 0;
for (auto & wstep : runnable2) {
auto step(wstep.lock());
if (!step) continue;
@ -341,6 +343,9 @@ void State::abortUnsupported()
}
}
if (!supported)
count++;
if (!supported
&& std::chrono::duration_cast<std::chrono::seconds>(now - step->state.lock()->lastSupported).count() >= maxUnsupportedTime)
{
@ -396,6 +401,8 @@ void State::abortUnsupported()
++i;
}
}
nrUnsupportedSteps = count;
}