Author: jfrederic.clere(a)jboss.com
Date: 2008-03-29 04:30:00 -0400 (Sat, 29 Mar 2008)
New Revision: 1484
Modified:
sandbox/httpd/src/native/common/node.c
Log:
Add missing update of offset.
Modified: sandbox/httpd/src/native/common/node.c
===================================================================
--- sandbox/httpd/src/native/common/node.c 2008-03-29 07:22:58 UTC (rev 1483)
+++ sandbox/httpd/src/native/common/node.c 2008-03-29 08:30:00 UTC (rev 1484)
@@ -90,7 +90,8 @@
if (strcmp(in->mess.JVMRoute, ou->mess.JVMRoute) == 0) {
memcpy(ou, in, sizeof(nodeinfo_t));
ou->mess.id = id;
- ou->updatetime = apr_time_sec(apr_time_now());
+ ou->updatetime = (unsigned long) apr_time_sec(apr_time_now());
+ ou->offset = sizeof(nodemess_t) + sizeof(unsigned long) +
sizeof(ou->balancer) + sizeof(int);
*data = ou;
return APR_SUCCESS;
}
@@ -117,7 +118,7 @@
memcpy(ou, node, sizeof(nodeinfo_t));
ou->mess.id = ident;
*id = ident;
- ou->updatetime = apr_time_sec(apr_time_now());
+ ou->updatetime = (unsigned long) apr_time_sec(apr_time_now());
/* set of offset to the proxy_worker_stat */
ou->offset = sizeof(nodemess_t) + sizeof(unsigned long) + sizeof(ou->balancer)
+ sizeof(int);
Show replies by date