diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-03 19:03:11 +0200 |
commit | 20b85c03e751b4876fa3c92040464e483172b746 (patch) | |
tree | 734fadbfdbc143ec4465093857f4c239448715e0 /src/qmail-mrtg.c | |
parent | a6a7d6ce079cabdaf2fa502b2e2cf15e5428ac6f (diff) |
manual format adjustment
Diffstat (limited to 'src/qmail-mrtg.c')
-rw-r--r-- | src/qmail-mrtg.c | 18 |
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) { |