diff --git a/htroot/AccessTracker_p.html b/htroot/AccessTracker_p.html
index 520980adf..d25b9c02c 100644
--- a/htroot/AccessTracker_p.html
+++ b/htroot/AccessTracker_p.html
@@ -164,7 +164,7 @@
|
|
Ø #[querycount_avg]#
- Ø #[querycount_avg1]# |
+
Ø #[resultcount_avg]#
Ø #[resultcount_avg1]# |
Ø #[resulttime_avg]#
diff --git a/htroot/AccessTracker_p.java b/htroot/AccessTracker_p.java
index bac186415..5d37e31e6 100644
--- a/htroot/AccessTracker_p.java
+++ b/htroot/AccessTracker_p.java
@@ -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)) {
|