Author: jfrederic.clere(a)jboss.com
Date: 2008-10-07 03:02:57 -0400 (Tue, 07 Oct 2008)
New Revision: 1938
Modified:
trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
Log:
Oops Arithmetic exception.
Modified: trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c
===================================================================
--- trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-10-06 20:52:20 UTC
(rev 1937)
+++ trunk/mod_cluster/native/mod_proxy_cluster/mod_proxy_cluster.c 2008-10-07 07:02:57 UTC
(rev 1938)
@@ -396,7 +396,8 @@
oldelected = ou->mess.oldelected;
ou->mess.updatetimelb = now;
ou->mess.oldelected = elected;
- stat->lbstatus = ((elected - oldelected) * 1000) / stat->lbfactor;
+ if (stat->lbfactor > 0)
+ stat->lbstatus = ((elected - oldelected) * 1000) / stat->lbfactor;
}
}
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, server,