File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ void output_exit_time(int exitcode, double cpudiff)
442
442
void check_remaining_procs ()
443
443
{
444
444
char path[1024 ];
445
- snprintf (path, 1023 , " /sys/fs/cgroup/cpuacct%scgroup .procs" , cgroupname);
445
+ snprintf (path, 1023 , " /sys/fs/cgroup/cpuacct/%s/cgroup .procs" , cgroupname);
446
446
447
447
FILE *file = fopen (path, " r" );
448
448
if (file == nullptr ) {
@@ -1184,7 +1184,7 @@ int main(int argc, char **argv)
1184
1184
} else {
1185
1185
str[0 ] = 0 ;
1186
1186
}
1187
- snprintf (cgroupname, 255 , " / domjudge/dj_cgroup_%d_%.16s_%d.%06d/ " ,
1187
+ snprintf (cgroupname, 255 , " domjudge/dj_cgroup_%d_%.16s_%d.%06d" ,
1188
1188
getpid (), str, (int )progstarttime.tv_sec , (int )progstarttime.tv_usec );
1189
1189
1190
1190
cgroup_create ();
You can’t perform that action at this time.
0 commit comments