if(debug)
debuga("sarg %s: %s",text[73],VERSION);
- if (strlen(Ulimit) > 0) {
+ if (Ulimit[0] != '\0') {
long l1, l2;
int rc=0;
l1 = rl.rlim_cur;
l2 = rl.rlim_max;
- if(Ulimit[0] != '\0') {
- rl.rlim_cur = atol(Ulimit);
- rl.rlim_max = atol(Ulimit);
+ rl.rlim_cur = atol(Ulimit);
+ rl.rlim_max = atol(Ulimit);
#if defined(RLIMIT_NOFILE)
- rc=setrlimit (RLIMIT_NOFILE, &rl);
+ rc=setrlimit (RLIMIT_NOFILE, &rl);
#elif defined(RLIMIT_OFILE)
- rc=setrlimit (RLIMIT_OFILE, &rl);
+ rc=setrlimit (RLIMIT_OFILE, &rl);
#else
#warning "No rlimit resource for the number of open files"
#endif
- if(rc == -1) {
- debuga("setrlimit error - %s\n",strerror(errno));
- }
+ if(rc == -1) {
+ debuga("setrlimit error - %s\n",strerror(errno));
}
if(debug)
in the GNU Info format; see below.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
-.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBsarg\fP is a tool that allows you to view "where" your users are going to on
the Internet. \fBsarg\fP generates reports in HTML, with fields such as: users,
Uses \fIdir\fP for temporary files.
.TP
.B \-x
-Writes messages on processes to \fBSTDOUT\fP
+Writes debug messages to \fBSTDOUT\fP
.TP
.B \-z
-Writes debug messages to \fBSTDOUT\fP
+Writes messages on processes to \fBSTDOUT\fP
.TP
.B \-convert
Convert the logfile's date/time field to human-readable.
fprintf(stderr, "%5s-t %s [HH, HH:MM]\n"," ",text[31]);
fprintf(stderr, "%5s-u %s\n"," ",text[32]);
fprintf(stderr, "%5s-w %s\n"," ",text[34]);
- fprintf(stderr, "%5s-x %s\n"," ",text[36]);
- fprintf(stderr, "%5s-z %s\n"," ",text[35]);
+ fprintf(stderr, "%5s-x %s\n"," ",text[35]);
+ fprintf(stderr, "%5s-z %s\n"," ",text[36]);
fprintf(stderr, "%5s-convert %s\n"," ",text[76]);
fprintf(stderr, "%5s-split %s\n"," ",text[77]);
fprintf(stderr, "\n\t%s-%s %s Pedro Lineu Orso - pedro.orso@gmail.com\n",PGM,VERSION,text[78]);