File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,12 +31,6 @@ ProcessRunnerResult UnixProcessRunner::run() {
3131 res.result = CorrectAnswer;
3232 int extraTime = qCeil (qMax (2000 , config.timeLimit * 2 ) * config.extraTimeRatio );
3333
34- if (skipFlag) {
35- res.result = TimeLimitExceeded;
36- res.score = 0 ;
37- return res;
38- }
39-
4034#ifdef Q_OS_LINUX
4135 // TODO: rewrite with cgroup
4236 QFile watcher (config.workingDirectory + QUuid::createUuid ().toString (QUuid::Id128));
@@ -199,17 +193,11 @@ ProcessRunnerResult UnixProcessRunner::run() {
199193
200194 QCoreApplication::processEvents ();
201195
202- if (stopFlag || skipFlag ) {
196+ if (stopFlag) {
203197 runner->terminate ();
204198 runner->waitForFinished (-1 );
205199 delete runner;
206200
207- if (skipFlag) {
208- res.score = 0 ;
209- res.result = TimeLimitExceeded;
210- res.timeUsed = res.memoryUsed = -1 ;
211- }
212-
213201 return res;
214202 }
215203
You can’t perform that action at this time.
0 commit comments