// modifications. Weblogic will return nothing for
// the connector, therefore we need to check the size
// of the list. Peter 12.22.04
double threadWeight = 0;
if (stat.getConnector().size() > 0) {
Connector cntr = (Connector) stat.getConnector().get(0);
int maxThread = cntr.getThreadInfo().getMaxThreads();
int curThread = cntr.getThreadInfo().getCurrentThreadsBusy();
double thdiv = (double) curThread / (double) maxThread;
threadWeight = DEFAULT_THREAD_FACTOR * thdiv;
}
return (int) (memWeight + threadWeight);
} else {