From d53c03ec3d51eb3b2e9bf24ed7c4d895a041d725 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 7 Apr 2007 12:47:33 +0000 Subject: [PATCH] only create one ProcFileMirror --- bindings/java/src/org/hyperic/sigar/cmd/Watch.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bindings/java/src/org/hyperic/sigar/cmd/Watch.java b/bindings/java/src/org/hyperic/sigar/cmd/Watch.java index d8e87ad1..a23b548a 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/Watch.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/Watch.java @@ -128,13 +128,16 @@ public class Watch { } }; + ProcFileMirror mirror = + new ProcFileMirror(sigar, "./proc"); + watcher.setInterval(watcherThread.getInterval()); + mirror.setInterval(watcherThread.getInterval()); + mirror.setExpire(60); + for (int i=0; i