Rev 12245 | Rev 13168 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12245 | Rev 12287 | ||
---|---|---|---|
Line 182... | Line 182... | ||
182 | if(strchr(tbuf,'#')==NULL && strcmp(pu,"supervisor")!=0) { /* not for simulation */ |
182 | if(strchr(tbuf,'#')==NULL && strcmp(pu,"supervisor")!=0) { /* not for simulation */ |
183 | snprintf(tbuf,sizeof(tbuf),"%d 00 %d %u %s %s %s\n", |
183 | snprintf(tbuf,sizeof(tbuf),"%d 00 %d %u %s %s %s\n", |
184 | t1, duration/60, (unsigned int) start,p1,pb, |
184 | t1, duration/60, (unsigned int) start,p1,pb, |
185 | nowstr); |
185 | nowstr); |
186 | if(prime!=0) { |
186 | if(prime!=0) { |
187 |
|
187 | int n=strlen(tbuf); |
188 | snprintf(tbuf+n,sizeof(tbuf)-n,"%d %.2f -1 %u %s %s\n", |
188 | snprintf(tbuf+n,sizeof(tbuf)-n,"%d %.2f -1 %u %s %s\n", |
189 | t1,prime,(unsigned int) start,p1,pb); |
189 | t1,prime,(unsigned int) start,p1,pb); |
190 |
|
190 | } |
191 |
|
191 | accessfile(tbuf,"a","%s/%s/score/%s.exam", |
192 | class_base,pc,pu); |
192 | class_base,pc,pu); |
193 | } |
193 | } |
194 | else accessfile("yes","w","%s/%s/examsimu.%d", |
194 | else accessfile("yes","w","%s/%s/examsimu.%d", |
195 | session_dir,pb,t1); |
195 | session_dir,pb,t1); |
196 | } |
196 | } |
Line 237... | Line 237... | ||
237 | if(*p2==0) goto abt; |
237 | if(*p2==0) goto abt; |
238 | *p2++=0; p2=find_word_start(p2); |
238 | *p2++=0; p2=find_word_start(p2); |
239 | t=atoi(p1); |
239 | t=atoi(p1); |
240 | snprintf(p,MAX_LINELEN, exam_depcheck(p2,t)? "yes" : "no"); |
240 | snprintf(p,MAX_LINELEN, exam_depcheck(p2,t)? "yes" : "no"); |
241 | } |
241 | } |
242 | - |