fix -n
This commit is contained in:
parent
3cfd1d4b24
commit
fe4080c460
|
@ -33,10 +33,10 @@ public class EventLogTail {
|
||||||
if (tail.number < max) {
|
if (tail.number < max) {
|
||||||
max = tail.number;
|
max = tail.number;
|
||||||
}
|
}
|
||||||
int last = log.getNewestRecord();
|
int last = log.getNewestRecord()+1;
|
||||||
int first = last - max;
|
int first = last - max;
|
||||||
|
|
||||||
for (int i=first; i<=last; i++) {
|
for (int i=first; i<last; i++) {
|
||||||
EventLogRecord record = log.read(i);
|
EventLogRecord record = log.read(i);
|
||||||
System.out.println(record);
|
System.out.println(record);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue