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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/Register.java (file contents):
Revision 1.7 by tdb, Tue Mar 6 19:24:25 2001 UTC vs.
Revision 1.8 by tdb, Tue Mar 6 19:41:35 2001 UTC

# Line 288 | Line 288 | public class Register {
288          try {
289              // note if we fail to get this value, we won't process the res of this
290              int reachFINALcount = Integer.parseInt(_cp.getProperty("Host." + _hostname, "Monitor." + _monitorName + ".reachFINALcount"));
291 <            if ((getLastAlertLevel(attributeNum) == Alert.alertLevels.length - 2) && (_maxLevelCount < reachFINALcount) ) {
291 >            if (getLastAlertLevel(attributeNum) == Alert.alertLevels.length - 2) {
292                  _maxLevelCount++;
293 <            } else {
294 <                setLastAlertLevel(attributeNum, Alert.alertFINAL);
293 >                if((_maxLevelCount < reachFINALcount)) {
294 >                    setLastAlertLevel(attributeNum, Alert.alertFINAL);
295 >                }
296              }
297          } catch (PropertyNotFoundException e) {
298              // we NEVER reach FINAL in this case

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines