--- projects/cms/source/host/java/SystemMonitor.java 2000/12/07 23:21:13 1.6 +++ projects/cms/source/host/java/SystemMonitor.java 2000/12/08 15:45:28 1.7 @@ -12,8 +12,8 @@ import java.util.*; * then packages these up using XMLFormatter and outputs them if * the timeout has passed. * - * @author $Author: tdb $ - * @version $Id: SystemMonitor.java,v 1.6 2000/12/07 23:21:13 tdb Exp $ + * @author $Author: ab11 $ + * @version $Id: SystemMonitor.java,v 1.7 2000/12/08 15:45:28 ab11 Exp $ */ class SystemMonitor { @@ -38,6 +38,8 @@ class SystemMonitor { // why oh why wont ultra edit let me put Long in the next line? oh its trying to // correct keywords =| + /* + try { udpcheckInterval = Long.parseLong(config.getProperty("UDPUpdateTime")) * 1000; } @@ -46,6 +48,8 @@ class SystemMonitor { // 5 mins udpcheckInterval = 5000 * 60; } + */ + // make the check interval into seconds } @@ -77,6 +81,7 @@ class SystemMonitor { xml.addString(details.getItems()); + /* // MUST FIX THIS..!!!! try { long updateIn = ( lastCheck + udpcheckInterval )-System.currentTimeMillis(); @@ -91,10 +96,11 @@ class SystemMonitor { catch( InterruptedException e ){ System.out.println("Sleep interrupted"); } + */ // increment sequence. sequence++; - lastCheck = System.currentTimeMillis(); + // lastCheck = System.currentTimeMillis(); // finally return a string return xml.returnXML(); @@ -108,8 +114,6 @@ class SystemMonitor { private long lastCheck; private int sequence; - private long udpcheckInterval; - private final long defaultUpdateTime = 60000; //---STATIC ATTRIBUTES---