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/CPU__Monitor.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/CPU__Monitor.java (file contents):
Revision 1.16 by tdb, Tue Mar 6 22:35:01 2001 UTC vs.
Revision 1.17 by ajm, Tue Mar 6 23:44:08 2001 UTC

# Line 41 | Line 41 | public class CPU__Monitor extends MonitorSkeleton {
41              Register reg = (Register) _hosts.get(source);
42              for(int attributeNum = 0; attributeNum < _attributes.length; attributeNum++) {
43                  // find out the threshold level we're at
44 <                String attributeName = _attributes[attributeNum];
45 <                String currentValue = packet.getParam(attributeName);
44 >                String attribute = _attributes[attributeNum];
45 >                String attributeName = _attributeNames[attributeNum];
46 >                String currentValue = packet.getParam(attribute);
47                  int newThreshold = checkAttributeThreshold(currentValue, reg);
48                  processAlert(newThreshold, attributeNum, attributeName, reg, source, currentValue);
49              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines