ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Memory__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Memory__Monitor.java (file contents):
Revision 1.2 by tdb, Wed Mar 7 00:38:05 2001 UTC vs.
Revision 1.3 by ajm, Fri Mar 9 03:30:55 2001 UTC

# Line 36 | Line 36 | public class Memory__Monitor extends MonitorSkeleton {
36          if (packet.getParam("packet.attributes.type").equals("data")) {
37              String source = packet.getParam("packet.attributes.machine_name");
38              if (!_hosts.containsKey(source)) {
39 <                _hosts.put(source, new Register(source, _name, 1));
39 >                _hosts.put(source, new Register(source, _name));
40              }
41              
42              Register reg = (Register) _hosts.get(source);
# Line 70 | Line 70 | public class Memory__Monitor extends MonitorSkeleton {
70              nf.setMinimumFractionDigits(2);
71              String strMemoryInUse = nf.format(memoryInUse);
72              
73 <            processAlert(newThreshold, 0, attributeName, reg, source, strMemoryInUse);
73 >            processAlert(newThreshold, attributeName, reg, source, strMemoryInUse);
74          }
75      }
76  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines