This commit is contained in:
Doug MacEachern 2007-08-28 01:07:09 +00:00
parent 3cfd1d4b24
commit fe4080c460
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }