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); |
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 |
|
|