]> granicus.if.org Git - apache/commitdiff
cleanup truncation
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 15 May 2009 17:46:29 +0000 (17:46 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 15 May 2009 17:46:29 +0000 (17:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@775257 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartmonitor.c

index c401679b05261523f2d076db534713b55f0cf945..a57ecff771e34fbb62e7b8a3683ac1ecb9ed9713 100644 (file)
@@ -171,7 +171,7 @@ static apr_status_t hm_update_stats(hm_ctx_t *ctx, apr_pool_t *p)
     for (hi = apr_hash_first(p, ctx->servers);
          hi != NULL; hi = apr_hash_next(hi)) {
         hm_server_t *s = NULL;
-        apr_uint32_t seen;
+        apr_time_t seen;
         apr_hash_this(hi, NULL, NULL, (void **) &s);
         seen = apr_time_sec(now - s->seen);
         if (seen > SEEN_TIMEOUT) {
@@ -182,7 +182,7 @@ static apr_status_t hm_update_stats(hm_ctx_t *ctx, apr_pool_t *p)
         }
         else {
             apr_file_printf(fp, "%s &ready=%u&busy=%u&lastseen=%u\n",
-                            s->ip, s->ready, s->busy, seen);
+                            s->ip, s->ready, s->busy, (unsigned int) seen);
         }
     }