From 97d4ab205383a7f72531b77ca6c6d2d283c923c9 Mon Sep 17 00:00:00 2001
From: karlchenofhell
Date: Sun, 29 Apr 2007 21:45:01 +0000
Subject: [PATCH] - handle null from iterator in
IndexCreateWWWLocalQueue_p.java - fixed ETA to reach next peer in
Network.java - added some
#%env/templates/footer.template%#
diff --git a/htroot/IndexCreateWWWLocalQueue_p.java b/htroot/IndexCreateWWWLocalQueue_p.java
index 176d208e5..9d4d00620 100644
--- a/htroot/IndexCreateWWWLocalQueue_p.java
+++ b/htroot/IndexCreateWWWLocalQueue_p.java
@@ -102,7 +102,7 @@ public class IndexCreateWWWLocalQueue_p {
Iterator iter = switchboard.noticeURL.iterator(plasmaCrawlNURL.STACK_TYPE_CORE);
plasmaCrawlEntry entry;
while (iter.hasNext()) {
- entry = (plasmaCrawlEntry) iter.next();
+ if ((entry = (plasmaCrawlEntry) iter.next()) == null) continue;
String value = null;
String nextHash = entry.urlhash();
if ((option.equals("URL")&&(entry.url() != null))) {
diff --git a/htroot/Network.java b/htroot/Network.java
index 2508cc014..ab5ccca41 100644
--- a/htroot/Network.java
+++ b/htroot/Network.java
@@ -482,7 +482,8 @@ public class Network {
prop.put("table_progressbar_timemessage", 2);
}else{
prop.put("table_progressbar_timemessage", 1);
- prop.put("table_progressbar_timemessage_time", serverDate.intervalToString( (int)((float)indexdiff/(float)ppmdiff)*1000 ));
+ // indexdiff / (ppmdiff * 60 * 1000) to get it in milli-seconds
+ prop.put("table_progressbar_timemessage_time", serverDate.intervalToString( (int)((float)indexdiff/(float)ppmdiff)*60000 ));
}
else
prop.put("table_progressbar_timemessage", 0);
diff --git a/htroot/yacy/hello.java b/htroot/yacy/hello.java
index 2f8980740..08aa01fa3 100644
--- a/htroot/yacy/hello.java
+++ b/htroot/yacy/hello.java
@@ -97,7 +97,7 @@ public final class hello {
if ((sb.isRobinsonMode()) && (!sb.isOpenRobinsonCluster())) {
// if we are a robinson cluster, answer only if this client is known by our network definition
- return null;
+ return prop;
}
int urls = -1;