From b123a404b080a6440647fbf0cc3b7e52f68229d6 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sat, 27 Jan 2007 23:24:18 +0000 Subject: [PATCH] added mime types added peer name in search statistics git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3285 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- build.properties | 2 +- htroot/SearchStatistics_p.html | 2 ++ htroot/SearchStatistics_p.java | 6 ++++++ httpd.mime | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/build.properties b/build.properties index 20cee3dee..8d053117c 100644 --- a/build.properties +++ b/build.properties @@ -3,7 +3,7 @@ javacSource=1.4 javacTarget=1.4 # Release Configuration -releaseVersion=0.501 +releaseVersion=0.502 releaseFile=yacy_dev_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz #releaseFile=yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.tar.gz releaseDir=yacy_dev_v${releaseVersion}_${DSTAMP}_${releaseNr} diff --git a/htroot/SearchStatistics_p.html b/htroot/SearchStatistics_p.html index f87311dd7..b0fb96727 100644 --- a/htroot/SearchStatistics_p.html +++ b/htroot/SearchStatistics_p.html @@ -102,12 +102,14 @@ + #{list}# + diff --git a/htroot/SearchStatistics_p.java b/htroot/SearchStatistics_p.java index 491e9ca15..3e467b2ac 100644 --- a/htroot/SearchStatistics_p.java +++ b/htroot/SearchStatistics_p.java @@ -32,11 +32,13 @@ import java.util.Set; import java.util.TreeSet; import de.anomic.http.httpHeader; +import de.anomic.net.natLib; import de.anomic.plasma.plasmaSearchQuery; import de.anomic.plasma.plasmaSwitchboard; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; import de.anomic.yacy.yacyCore; +import de.anomic.yacy.yacySeed; public class SearchStatistics_p { @@ -109,6 +111,10 @@ public class SearchStatistics_p { } prop.put("page_list_" + entCount + "_dark", ((dark) ? 1 : 0) ); dark =! dark; prop.put("page_list_" + entCount + "_host", host); + if (page == 4) { + yacySeed remotepeer = yacyCore.seedDB.lookupByIP(natLib.getInetAddress(host), true, true, true); + prop.put("page_list_" + entCount + "_peername", remotepeer); + } prop.put("page_list_" + entCount + "_count", new Integer(handles.size()).toString()); prop.put("page_list_" + entCount + "_dates", handlestring); // next diff --git a/httpd.mime b/httpd.mime index dd7734f91..c3bb21556 100644 --- a/httpd.mime +++ b/httpd.mime @@ -34,7 +34,11 @@ jpg = image/jpeg js = text/javascript lha = application/x-lzh lzh = application/x-lzh +m4v = video/x-m4v mov = video/quicktime +mp2 = audio/mpeg +mp3 = audio/mpeg +mp4 = video/mp4 mpe = video/mpeg mpeg = video/mpeg mpg = video/mpeg
Requesting HostPeer Name Count Access Dates
#[host]##[peername]# #[count]# #[dates]#