Keep track of the number of unsupported steps
(cherry picked from commit 45ffe578b6
)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user