diff options
author | Jean-Frederic Clere <jfclere@apache.org> | 2009-08-03 13:48:40 +0200 |
---|---|---|
committer | Jean-Frederic Clere <jfclere@apache.org> | 2009-08-03 13:48:40 +0200 |
commit | ede6e93b11825d94f37dad2914be874538c3cf0b (patch) | |
tree | e498d1579443ace62a86d7b832571bccaf9d0431 /modules/cluster | |
parent | Remove some duplicate extensions (reported by Jacob Rus) (diff) | |
download | apache2-ede6e93b11825d94f37dad2914be874538c3cf0b.tar.xz apache2-ede6e93b11825d94f37dad2914be874538c3cf0b.zip |
Fix warnings.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@800319 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cluster')
-rw-r--r-- | modules/cluster/mod_heartmonitor.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c index f24ae27b51..68453f8ecd 100644 --- a/modules/cluster/mod_heartmonitor.c +++ b/modules/cluster/mod_heartmonitor.c @@ -236,7 +236,6 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_ apr_status_t rv; apr_file_t *fp; apr_file_t *fpin; - apr_hash_index_t *hi; apr_time_t now; unsigned int fage; apr_finfo_t fi; @@ -314,15 +313,21 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_ argstr_to_table(pool, apr_pstrdup(pool, t), hbt); if (apr_table_get(hbt, "busy")) { node.busy = atoi(apr_table_get(hbt, "busy")); + } else { + node.busy = 0; } if (apr_table_get(hbt, "ready")) { node.ready = atoi(apr_table_get(hbt, "ready")); + } else { + node.ready = 0; } if (apr_table_get(hbt, "lastseen")) { node.seen = atoi(apr_table_get(hbt, "lastseen")); - } + } else { + node.seen = SEEN_TIMEOUT; + } seen = fage + node.seen; apr_file_printf(fp, "%s &ready=%u&busy=%u&lastseen=%u\n", ip, node.ready, node.busy, (unsigned int) seen); |