httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r800319 - /httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
Date Mon, 03 Aug 2009 11:48:40 GMT
Author: jfclere
Date: Mon Aug  3 11:48:40 2009
New Revision: 800319

URL: http://svn.apache.org/viewvc?rev=800319&view=rev
Log:
Fix warnings.

Modified:
    httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c

Modified: httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c?rev=800319&r1=800318&r2=800319&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c (original)
+++ httpd/httpd/trunk/modules/cluster/mod_heartmonitor.c Mon Aug  3 11:48:40 2009
@@ -236,7 +236,6 @@
     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 @@
                 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);



Mime
View raw message