--- projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Swap__Monitor.java 2003/03/10 08:59:19 1.12 +++ projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Swap__Monitor.java 2003/03/10 14:39:33 1.13 @@ -33,7 +33,7 @@ import uk.org.iscream.cms.server.componentmanager.*; * This Monitor watches the Swap for all machines * * @author $Author: tdb $ - * @version $Id: Swap__Monitor.java,v 1.12 2003/03/10 08:59:19 tdb Exp $ + * @version $Id: Swap__Monitor.java,v 1.13 2003/03/10 14:39:33 tdb Exp $ */ public class Swap__Monitor extends MonitorSkeleton { @@ -42,7 +42,7 @@ public class Swap__Monitor extends MonitorSkeleton { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.12 $"; + public final String REVISION = "$Revision: 1.13 $"; /** * A description of this monitor @@ -118,7 +118,7 @@ public class Swap__Monitor extends MonitorSkeleton { NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(2); nf.setMinimumFractionDigits(2); - String strSwapInUse = nf.format(swapInUse); + String strSwapInUse = nf.format(curValue); String attributeName = "Swap in use " + type; @@ -211,7 +211,12 @@ public class Swap__Monitor extends MonitorSkeleton { * be changed to null for utility classes. */ private String _name = "Swap"; - + + /** + * A reference to the configuration proxy in use + */ + private ConfigurationProxy _cp = ConfigurationProxy.getInstance(); + /** * A HashMap of Registers (or groups of Registers), one * for each host we're monitoring.