We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b82f1a0 commit 0069527Copy full SHA for 0069527
trunk/core/judged/judgehub.cc
@@ -56,6 +56,7 @@ void wait_udp_msg(int fd)
56
char cnf[BUFFER_SIZE<<2]; //......1024..
57
socklen_t len;
58
int count;
59
+ long diff;
60
struct sockaddr_in clent_addr; //clent_addr............
61
memset(buf, 0, BUFFER_SIZE);
62
len = sizeof(clent_addr);
@@ -77,7 +78,7 @@ void wait_udp_msg(int fd)
77
78
gettimeofday(&now,NULL);
79
printf(" now_time:%ld\n",now.tv_sec);
80
printf("cnf_mtime:%ld\n",cnfstat.st_mtime);
- long diff = now.tv_sec - cnfstat.st_mtime;
81
+ diff = now.tv_sec - cnfstat.st_mtime;
82
// if(labs(diff) > ONE_YEAR_SECONDS ) return;
83
if(fork()==0){
84
printf("Running judged on : %s\n",oj_home);
0 commit comments