Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Bugfix: Do not shot the first X lines, but the last X line of log

allo4c8cc101d60b
diff --git a/htroot/Log_p.java b/htroot/Log_p.java
index 1e00f362d..cc6b2793c 100644
--- a/htroot/Log_p.java
+++ b/htroot/Log_p.java
@@ -83,8 +83,13 @@ public class Log_p {
//log += it.next() + "\n";
//}
+ int startLine=logLines.length-lines;
+ if(startLine<0){
+ startLine=0;
+ }
+
//either all Entries(<lines) or "lines" entries
- for(int i=0;i<(lines < logLines.length ? lines : logLines.length);i++){
+ for(int i=startLine;i<logLines.length;i++){
log += (String)logLines[i] + "\n";
}
}else{