summaryrefslogtreecommitdiff
path: root/src/qmail-mrtg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-mrtg.c')
-rw-r--r--src/qmail-mrtg.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/qmail-mrtg.c b/src/qmail-mrtg.c
index cecd067..bcf4d01 100644
--- a/src/qmail-mrtg.c
+++ b/src/qmail-mrtg.c
@@ -199,14 +199,14 @@ void mrtg_sendlog(char *in, char flag)
if (case_starts(in + i, "success:")) success++;
i = str_chr(in, 'T');
if (case_starts(in + i, "TLS_")) tlstrans++;
- };
+ }
break;
case '2':
if (case_starts(in, "info msg")) {
i = str_chr(in, ':') + 8;
if ((j = str_chr(in + i, ' '))) in[i + j] = '\0';
bytes += atoi(in + i);
- };
+ }
break;
case '3':
if (case_starts(in, "status:")) {
@@ -216,14 +216,14 @@ void mrtg_sendlog(char *in, char flag)
if (atoi(in + i) > local) local = atoi(in + i);
if ((j = str_chr(in + k, '/'))) in[k + j] = '\0';
if (atoi(in + k) > remote) remote = atoi(in + k);
- };
+ }
break;
case '4':
if (case_starts(in, "delivery")) {
i = str_chr(in, ':') + 2;
if (case_starts(in + i, "failure:")) failure++;
if (case_starts(in + i, "deferral:")) deferral++;
- };
+ }
break;
case '5':
if (case_starts(in, "bounce msg")) bounces++;
@@ -234,7 +234,7 @@ void mrtg_sendlog(char *in, char flag)
i = str_chr(in, 'q');
if (case_starts(in + i, "qmtp:_ok")) qmtp++;
if (case_starts(in + i, "qmtps:_ok")) qmtps++;
- };
+ }
break;
default: break;
}
@@ -326,7 +326,7 @@ void mrtg_pop3log(char *in, char flag)
i = str_chr(in, ':') + 2;
if (case_starts(in + i, "ok")) pok++;
if (case_starts(in + i, "deny")) pdeny++;
- };
+ }
break;
default: break;
}
@@ -353,9 +353,9 @@ int main(int argc, char **argv)
WHO,
100,
USAGE,
- "qmail-mrtg [ -1 | -2 | -3 | -4 | -5 | -6 |\
- -a | -b | -c | -d | -e | -f | -g | -h | -i | -j | -k | -z | -A | -B ] [time] \n\
- qmail-mrtg needs to be called every [time] minutes (i.e. by crontab) - default 305 secs");
+ "qmail-mrtg [ -1 | -2 | -3 | -4 | -5 | -6 | -a | -b | -c | -d | -e | -f "
+ "| -g | -h | -i | -j | -k | -z | -A | -B ] [time] \n"
+ "qmail-mrtg needs to be called every [time] minutes (i.e. by crontab) - default 305 secs");
flag = *(argv[1] + 1);
if (argc == 3) {