summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fb6b950)
raw | patch | inline | side by side (parent: fb6b950)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 20 Apr 2009 18:26:44 +0000 (20:26 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 20 Apr 2009 18:26:44 +0000 (20:26 +0200) |
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 69b6bb504e3de683c6fa3c6a1abee511e697b3fa..c93a5d35ed2de9c4638f2c198d9371386c9ec50a 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
long long finishing = 0LL;
long long idle_cleanup = 0LL;
- // lighttpd specific
+ /* lighttpd specific */
long long connect = 0LL;
long long hard_error = 0LL;
long long lighttpd_read = 0LL;
char *fields[4];
int fields_num;
- int server = LIGHTTPD; // default is lighttpd
+ int server = LIGHTTPD; /* default is lighttpd */
if (st->curl == NULL)
return (-1);
}
else if (fields_num == 2)
{
- // find out if the server is apache from the mod_status output.
- // apache mod_status output has additional fields which lighttpd
- // mod_status output doesn't have e.g: ReqPerSec.
- // submit_scoreboard needs server type information and thus it is
- // important to pick up a field before scoreboard gets parsed
- // to set the server type
+ /* find out if the server is apache from the mod_status
+ * output. apache mod_status output has additional
+ * fields which lighttpd mod_status output doesn't have
+ * e.g: ReqPerSec. submit_scoreboard needs server type
+ * information and thus it is important to pick up a
+ * field before scoreboard gets parsed to set the
+ * server type */
if (strcmp (fields[0], "ReqPerSec:") == 0)
server = APACHE;
else if (strcmp (fields[0], "Scoreboard:") == 0)
}
return (0);
- } /* int apache_read */
+} /* int apache_read */
void module_register (void)
{