Skip to content

Commit bfc593f

Browse files
committed
fixes
1 parent 4d559ae commit bfc593f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

judge/runguard.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ void output_cgroup_stats_v2(double *cputime)
506506
void *handle;
507507
ret = cgroup_read_stats_begin("cpu", cgroupname, &handle, &stat);
508508
while (ret == 0) {
509+
verbose("cpu.stat: %s = %s", stat.name, stat.value);
509510
if (strcmp(stat.name, "usage_usec") == 0) {
510511
long long usec = strtoll(stat.value, NULL, 10);
511512
*cputime = usec / 1e6;
512-
break;
513513
}
514514
ret = cgroup_read_stats_next(&handle, &stat);
515515
}

0 commit comments

Comments
 (0)