|
|
|
@ -101,7 +101,7 @@ public class Network {
|
|
|
|
|
accActWords += words;
|
|
|
|
|
}
|
|
|
|
|
prop.put("table_my-version", seed.get("Version", "-"));
|
|
|
|
|
prop.put("table_my-uptime", seed.get("Uptime", "-"));
|
|
|
|
|
prop.put("table_my-uptime", Status.intervalToString(seed.get("Uptime", "-")));
|
|
|
|
|
prop.put("table_my-links", groupDigits(links));
|
|
|
|
|
prop.put("table_my-words", groupDigits(words));
|
|
|
|
|
prop.put("table_my-acceptcrawl", "" + (seed.getFlagAcceptRemoteCrawl() ? 1 : 0) );
|
|
|
|
@ -167,18 +167,9 @@ public class Network {
|
|
|
|
|
boolean complete = post.containsKey("ip");
|
|
|
|
|
Enumeration e = null;
|
|
|
|
|
switch (page) {
|
|
|
|
|
case 1 :
|
|
|
|
|
e = yacyCore.seedDB.seedsSortedConnected(post.get("order", "down").equals("up"), post.get("sort", "LCount"));
|
|
|
|
|
prop.put("table_total", yacyCore.seedDB.sizeConnected());
|
|
|
|
|
break;
|
|
|
|
|
case 2 :
|
|
|
|
|
e = yacyCore.seedDB.seedsSortedDisconnected(post.get("order", "up").equals("up"), post.get("sort", "LastSeen"));
|
|
|
|
|
prop.put("table_total", yacyCore.seedDB.sizeDisconnected());
|
|
|
|
|
break;
|
|
|
|
|
case 3 :
|
|
|
|
|
e = yacyCore.seedDB.seedsSortedPotential(post.get("order", "up").equals("up"), post.get("sort", "LastSeen"));
|
|
|
|
|
prop.put("table_total", yacyCore.seedDB.sizePotential());
|
|
|
|
|
break;
|
|
|
|
|
case 1 : e = yacyCore.seedDB.seedsSortedConnected(post.get("order", "down").equals("up"), post.get("sort", "LCount")); break;
|
|
|
|
|
case 2 : e = yacyCore.seedDB.seedsSortedDisconnected(post.get("order", "up").equals("up"), post.get("sort", "LastSeen")); break;
|
|
|
|
|
case 3 : e = yacyCore.seedDB.seedsSortedPotential(post.get("order", "up").equals("up"), post.get("sort", "LastSeen")); break;
|
|
|
|
|
}
|
|
|
|
|
while ((e.hasMoreElements()) && (conCount < maxCount)) {
|
|
|
|
|
seed = (yacySeed) e.nextElement();
|
|
|
|
@ -219,7 +210,7 @@ public class Network {
|
|
|
|
|
prop.put("table_list_"+conCount+"_version", seed.get("Version", "-"));
|
|
|
|
|
prop.put("table_list_"+conCount+"_contact", (seed.getFlagDirectConnect() ? 1 : 0) );
|
|
|
|
|
prop.put("table_list_"+conCount+"_lastSeen", lastSeen(seed.get("LastSeen", "-")) );
|
|
|
|
|
prop.put("table_list_"+conCount+"_uptime", seed.get("Uptime", "-") );
|
|
|
|
|
prop.put("table_list_"+conCount+"_uptime", Status.intervalToString(seed.get("Uptime", "-")));
|
|
|
|
|
prop.put("table_list_"+conCount+"_links", groupDigits(links));
|
|
|
|
|
prop.put("table_list_"+conCount+"_words", groupDigits(words));
|
|
|
|
|
prop.put("table_list_"+conCount+"_acceptcrawl", (seed.getFlagAcceptRemoteCrawl() ? 1 : 0) );
|
|
|
|
@ -237,7 +228,7 @@ public class Network {
|
|
|
|
|
prop.put("table_list", conCount);
|
|
|
|
|
prop.put("table", 1);
|
|
|
|
|
prop.put("table_num", conCount);
|
|
|
|
|
//prop.put("table_total", (maxCount > conCount) ? conCount : maxCount);
|
|
|
|
|
prop.put("table_total", (maxCount > conCount) ? conCount : maxCount);
|
|
|
|
|
prop.put("table_complete", ((complete)? 1 : 0) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|