From: Florian Forster Date: Mon, 20 Apr 2009 18:39:27 +0000 (+0200) Subject: apache plugin: Remove the `connect' variable: It wasn't really being used. X-Git-Tag: collectd-4.7.0~38^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=95d4cb4c0867e886fbe9e6e39596e84b5cb8dbd4;p=collectd.git apache plugin: Remove the `connect' variable: It wasn't really being used. --- diff --git a/src/apache.c b/src/apache.c index c93a5d35..090ece7e 100644 --- a/src/apache.c +++ b/src/apache.c @@ -467,7 +467,6 @@ static void submit_scoreboard (char *buf, int server, apache_t *st) long long idle_cleanup = 0LL; /* lighttpd specific */ - long long connect = 0LL; long long hard_error = 0LL; long long lighttpd_read = 0LL; long long handle_request = 0LL; @@ -491,7 +490,6 @@ static void submit_scoreboard (char *buf, int server, apache_t *st) else if (buf[i] == 'L') logging++; else if (buf[i] == 'G') finishing++; else if (buf[i] == 'I') idle_cleanup++; - else if (buf[i] == '.') connect++; else if (buf[i] == 'r') lighttpd_read++; else if (buf[i] == 'h') handle_request++; else if (buf[i] == 'E') hard_error++; @@ -516,7 +514,7 @@ static void submit_scoreboard (char *buf, int server, apache_t *st) submit_gauge ("apache_scoreboard", "idle_cleanup", idle_cleanup, st); } else { - submit_gauge ("apache_scoreboard", "connect" , connect, st); + submit_gauge ("apache_scoreboard", "connect" , open, st); submit_gauge ("apache_scoreboard", "close" , closing, st); submit_gauge ("apache_scoreboard", "hard_error" , hard_error, st); submit_gauge ("apache_scoreboard", "read" , lighttpd_read, st);