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