summaryrefslogtreecommitdiffstats
path: root/modules/cluster
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2009-12-01 09:44:11 +0100
committerWilliam A. Rowe Jr <wrowe@apache.org>2009-12-01 09:44:11 +0100
commit3e338e488c706c2ccb157ae0b22986df937e6e5a (patch)
tree77bc8a1d9c7b1ef33b31968cc2b6780eafcb9958 /modules/cluster
parentAdd mod_proxy_scgi; PR 48303; Submitted by: Gregg L. Smith <lists glewis.com> (diff)
downloadapache2-3e338e488c706c2ccb157ae0b22986df937e6e5a.tar.xz
apache2-3e338e488c706c2ccb157ae0b22986df937e6e5a.zip
Elaborate on low hanging XXX fruit
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@885689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cluster')
-rw-r--r--modules/cluster/mod_heartmonitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c
index 9933ca77de..1e4a92341f 100644
--- a/modules/cluster/mod_heartmonitor.c
+++ b/modules/cluster/mod_heartmonitor.c
@@ -230,7 +230,7 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_
apr_file_t *fp;
apr_file_t *fpin;
apr_time_t now;
- unsigned int fage;
+ apr_time_t fage;
apr_finfo_t fi;
int updated = 0;
char *path = apr_pstrcat(pool, ctx->storage_path, ".tmp.XXXXXX", NULL);
@@ -266,7 +266,7 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_
bb = apr_brigade_create(pool, ba);
apr_brigade_insert_file(bb, fpin, 0, fi.size, pool);
tmpbb = apr_brigade_create(pool, ba);
- fage = (unsigned int) apr_time_sec(now - fi.mtime);
+ fage = apr_time_sec(now - fi.mtime);
do {
char buf[4096];
const char *ip;
@@ -300,7 +300,7 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_
apr_file_printf(fp, "%s\n", buf);
} else if (strcmp(ip, s->ip) !=0 ) {
hm_server_t node;
- unsigned int seen;
+ apr_time_t seen;
/* Update seen time according to the last file modification */
apr_table_clear(hbt);
qs_to_table(apr_pstrdup(pool, t), hbt, pool);