*) adding peer-hash, seed-url and location to network.xml

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3772 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 18 years ago
parent 1efe607c34
commit 5f80b72cac

@ -116,6 +116,7 @@ public class Network {
// my-info
prop.put("table_my-name", seed.get(yacySeed.NAME, "-") );
prop.put("table_my-hash", seed.hash );
if (yacyCore.seedDB.mySeed.isVirgin()) {
prop.put("table_my-info", 0);
} else if(yacyCore.seedDB.mySeed.isJunior()) {
@ -153,6 +154,13 @@ public class Network {
prop.put("table_my-totalqph", Double.toString(Math.round(6000d * sb.totalQPM) / 100d));
prop.put("table_my-seeds", seed.get(yacySeed.SCOUNT, "-"));
prop.put("table_my-connects", groupDigits(seed.get(yacySeed.CCOUNT, "0")));
prop.put("table_my-url", seed.get("seedURL", ""));
// generating the location string
String location = httpc.userAgent;
int p = location.lastIndexOf(';');
location = (p > 0) ? location.substring(p + 1, location.length() - 1).trim(): "";
prop.put("table_my-location", location);
}
// overall results: Network statistics

@ -58,6 +58,7 @@
</all>
<your>
<name>#[my-name]#</name>
<hash>#[my-hash]#</hash>
<type>#(my-info)#virgin::junior::senior::principal#(/my-info)#</type>
<version>#[my-version]#</version>
<utc>#[my-utc]#</utc>
@ -74,6 +75,8 @@
<qph>#[my-qph]#</qph>
<seeds>#[my-seeds]#</seeds>
<connects>#[my-connects]#</connects>
<location>#[my-location]#</location>
<seedurl>#[my-url]#</seedurl>
</your>
<cluster>
<ppm>#[gppm]#</ppm>

Loading…
Cancel
Save