User: ejort   
  Date: 02/03/29 02:44:32

  Modified:    src/main/javax/management/monitor Tag: BranchMX_1_0
                        CounterMonitor.java
  Log:
  More monitor testing
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +8 -2      jmx/src/main/javax/management/monitor/CounterMonitor.java
  
  Index: CounterMonitor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jmx/src/main/javax/management/monitor/CounterMonitor.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- CounterMonitor.java       24 Mar 2002 11:50:27 -0000      1.1.2.1
  +++ CounterMonitor.java       29 Mar 2002 10:44:32 -0000      1.1.2.2
  @@ -19,9 +19,15 @@
    * <ul>
    * <li>Reset the threshold when the value becomes negative in difference mode
    * </ul>
  + * <p><b>20020326 Adrian Brock:</b>
  + * <ul>
  + * <li>The spec says the modulus should be *strictly* exceeded. It appears
  + * from testing the RI, it is a mathematical definition of modulus. e.g.
  + * 10 exceeds a modulus of 10
  + * </ul>
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Adrian Brock</a>
  - * @version $Revision: 1.1.2.1 $
  + * @version $Revision: 1.1.2.2 $
    *
    */
   public class CounterMonitor
  @@ -285,7 +291,7 @@
   
       // For normal mode, restart when modulus exceeded
       if (differenceMode == false && modulus.longValue() != 0 &&
  -        number.longValue() > modulus.longValue())
  +        number.longValue() >= modulus.longValue())
       {
         threshold = initialThreshold;
         alreadyNotified &= ~THRESHOLD_EXCEEDED_NOTIFIED;
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to