From fe4080c460c25094bd9856b56ef7cf5add719607 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 28 Aug 2007 01:07:09 +0000 Subject: [PATCH] fix -n --- bindings/java/src/org/hyperic/sigar/cmd/EventLogTail.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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