diff --git a/bindings/java/src/org/hyperic/sigar/cmd/EventLogTail.java b/bindings/java/src/org/hyperic/sigar/cmd/EventLogTail.java index d0014d55..bed789ac 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/EventLogTail.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/EventLogTail.java @@ -33,10 +33,10 @@ public class EventLogTail { if (tail.number < max) { max = tail.number; } - int last = log.getNewestRecord(); + int last = log.getNewestRecord()+1; int first = last - max; - for (int i=first; i<=last; i++) { + for (int i=first; i