Skip to content

Commit

Permalink
issues254
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue committed Apr 2, 2018
1 parent 00e2e53 commit 94c62a9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions trunk/core/judge_client/judge_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ void watch_solution(pid_t pidApp, char * infile, int & ACflg, int isspj,
int & topmemory, int mem_lmt, int & usedtime, int time_lmt, int & p_id,
int & PEflg, char * work_dir) {
// parent
int tempmemory;
int tempmemory=0;

if (DEBUG)
printf("pid=%d judging %s\n", pidApp, infile);
Expand All @@ -2024,8 +2024,6 @@ void watch_solution(pid_t pidApp, char * infile, int & ACflg, int isspj,
struct user_regs_struct reg;
struct rusage ruse;
int first = true;
if(topmemory==0)
topmemory= get_proc_status(pidApp, "VmRSS:") << 10;
while (1) {
// check the usage

Expand Down Expand Up @@ -2521,7 +2519,7 @@ int main(int argc, char** argv) {
p_id, PEflg, work_dir);

}
if (ACflg == OJ_TL) {
if (finalACflg == OJ_TL) {
usedtime = time_lmt * 1000;
}
if (ACflg == OJ_RE) {
Expand Down Expand Up @@ -2601,7 +2599,7 @@ int main(int argc, char** argv) {
if (use_max_time) {
usedtime = max_case_time;
}
if (finalACflg == OJ_TL) {
if (finalACflg == OJ_TL ) {
usedtime = time_lmt * 1000;
if (DEBUG)
printf("usedtime:%d\n",usedtime);
Expand Down

0 comments on commit 94c62a9

Please sign in to comment.