Skip to content

Commit

Permalink
some more reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Suda committed Sep 26, 2017
1 parent 52c865c commit 34248ba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CASC/PortfolioMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ bool PortfolioMode::runSchedule(Schedule& schedule, int terminationTime)
if (sliceTime > remainingTime) {
sliceTime = remainingTime;
}

ASS_GE(sliceTime,0);

pid_t childId=Multiprocessing::instance()->fork();
Expand All @@ -285,12 +284,12 @@ bool PortfolioMode::runSchedule(Schedule& schedule, int terminationTime)
}
Timer::syncClock();
ASS(childIds.insert(childId));
/*
env.beginOutput();
lineOutput() << "slice pid "<< childId << " slice: " << sliceCode
<< " time: " << (sliceTime/100)/10.0 << endl;
env.endOutput();
*/

if (outputAllowed()) {
env.beginOutput();
lineOutput() << "spawned child "<< childId << " with time: " << sliceTime << " (total remaining time " << remainingTime << ")" << endl;
env.endOutput();
}

processesLeft--;
if (!it.hasNext()) {
Expand Down

0 comments on commit 34248ba

Please sign in to comment.