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 |
|
} |