diff --git a/doc/zzuf.1 b/doc/zzuf.1 index 3415547..24e7637 100644 --- a/doc/zzuf.1 +++ b/doc/zzuf.1 @@ -290,7 +290,7 @@ Automatically terminate child processes that run for more than \fIn\fR seconds. This is useful to detect infinite loops or processes stuck in other situations. See also the \fB\-B\fR and \fB\-T\fR flags. .TP -\fB\-T\fR, \fB\-\-max\-cpu\fR=\fIn\fR +\fB\-T\fR, \fB\-\-max\-cputime\fR=\fIn\fR Automatically terminate child processes that use more than \fIn\fR seconds of CPU time. diff --git a/src/zzuf.c b/src/zzuf.c index 68db6ac..0086c34 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -211,7 +211,7 @@ int main(int argc, char *argv[]) { "seed", 1, NULL, 's' }, { "signal", 0, NULL, 'S' }, { "max-time", 1, NULL, 't' }, - { "max-cpu", 1, NULL, 'T' }, + { "max-cputime", 1, NULL, 'T' }, { "verbose", 0, NULL, 'v' }, { "check-exit", 0, NULL, 'x' }, { "help", 0, NULL, 'h' }, @@ -349,7 +349,7 @@ int main(int argc, char *argv[]) opts->maxtime = (int64_t)(atof(myoptarg) * 1000000.0); break; #if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU - case 'T': /* --max-cpu */ + case 'T': /* --max-cputime */ if(myoptarg[0] == '=') myoptarg++; opts->maxcpu = (int)(atof(myoptarg) + 0.5); @@ -1252,7 +1252,7 @@ static void usage(void) printf(" --seed specify a seed range\n"); printf(" -S, --signal prevent children from diverting crashing signals\n"); printf(" -t, --max-time kill children that run for more than seconds\n"); - printf(" -T, --max-cpu kill children that use more than CPU seconds\n"); + printf(" -T, --max-cputime kill children that use more than CPU seconds\n"); printf(" -v, --verbose print information during the run\n"); printf(" -x, --check-exit report processes that exit with a non-zero status\n"); printf(" -h, --help display this help and exit\n");