display proper values

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5374 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
lotus 16 years ago
parent 0b4808ba3d
commit 1a51d9fcfd

@ -164,7 +164,7 @@
<td></td>
<td></td>
<td>&#216; #[querycount_avg]#
<br/>&#216; #[querycount_avg1]#</td>
<br/></td>
<td>&#216; #[resultcount_avg]#
<br/>&#216; #[resultcount_avg1]#</td>
<td>&#216; #[resulttime_avg]#

@ -144,6 +144,9 @@ public class AccessTracker_p {
long utimeSum = 0;
long stimeSum = 0;
long rtimeSum = 0;
long utimeSum1 = 0;
long stimeSum1 = 0;
long rtimeSum1 = 0;
for (int entCount = 0; entCount < m; entCount++) {
searchProfile = array.get(array.size() - entCount - 1);
@ -170,10 +173,15 @@ public class AccessTracker_p {
prop.putNum("page_list_" + entCount + "_resulttime", searchProfile.searchtime);
qcountSum += searchProfile.linesPerPage;
rcountSum += searchProfile.resultcount;
if (searchProfile.resultcount > 0) rcount++;
utimeSum += searchProfile.urlretrievaltime;
stimeSum += searchProfile.snippetcomputationtime;
rtimeSum += searchProfile.searchtime;
if (searchProfile.resultcount > 0){
rcount++;
utimeSum1 += searchProfile.urlretrievaltime;
stimeSum1 += searchProfile.snippetcomputationtime;
rtimeSum1 += searchProfile.searchtime;
}
}
prop.put("page_list", m);
prop.put("page_num", m);
@ -187,11 +195,10 @@ public class AccessTracker_p {
prop.putNum("page_urltime_avg", (double) utimeSum / m);
prop.putNum("page_snippettime_avg", (double) stimeSum / m);
prop.putNum("page_resulttime_avg", (double) rtimeSum / m);
prop.putNum("page_querycount_avg1", (double) qcountSum / rcount);
prop.putNum("page_resultcount_avg1", (double) rcountSum / rcount);
prop.putNum("page_urltime_avg1", (double) utimeSum / rcount);
prop.putNum("page_snippettime_avg1", (double) stimeSum / rcount);
prop.putNum("page_resulttime_avg1", (double) rtimeSum / rcount);
prop.putNum("page_urltime_avg1", (double) utimeSum1 / rcount);
prop.putNum("page_snippettime_avg1", (double) stimeSum1 / rcount);
prop.putNum("page_resulttime_avg1", (double) rtimeSum1 / rcount);
prop.putNum("page_total", (page == 2) ? sb.localSearches.size() : sb.remoteSearches.size());
}
if ((page == 3) || (page == 5)) {

Loading…
Cancel
Save