projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21be3c2
)
apache plugin: Remove the `connect' variable: It wasn't really being used.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 20 Apr 2009 18:39:27 +0000
(20:39 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 20 Apr 2009 18:39:27 +0000
(20:39 +0200)
src/apache.c
patch
|
blob
|
history
diff --git
a/src/apache.c
b/src/apache.c
index
c93a5d3
..
090ece7
100644
(file)
--- 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 idle_cleanup = 0LL;
/* lighttpd specific */
- long long connect = 0LL;
long long hard_error = 0LL;
long long lighttpd_read = 0LL;
long long handle_request = 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] == '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++;
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", "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);
submit_gauge ("apache_scoreboard", "close" , closing, st);
submit_gauge ("apache_scoreboard", "hard_error" , hard_error, st);
submit_gauge ("apache_scoreboard", "read" , lighttpd_read, st);