Revision 2256

View differences:

org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/logger/FilteredLogger.java
35 35
                    this.showTooManyErrorsMessage = true;
36 36
                    return true;
37 37
                }
38
                if( this.lastTime+this.interval > now ) {
38
                if( now - this.lastTime > this.interval ) {
39 39
                    this.lastTime = now;
40 40
                    this.showTooManyErrorsMessage = true;
41 41
                    return true;
42 42
                }
43

  
43 44
                if( this.showTooManyErrorsMessage ) {
44 45
                    this.logger.info("Too many errors, skip some in this process ("+processName+").");
45 46
                    this.showTooManyErrorsMessage = false;

Also available in: Unified diff