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

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@57 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent ba16da72b4
commit 4c8cc101d6

@ -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{

Loading…
Cancel
Save