commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1512537 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
Date Fri, 09 Aug 2013 23:44:14 GMT
Author: ggregory
Date: Fri Aug  9 23:44:13 2013
New Revision: 1512537

URL: http://svn.apache.org/r1512537
Log:
[VFS-486] DefaultFileMonitor sleeps for twice the specified delay when checkPerRun > 0.
Thanks to Sam Haldane.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java?rev=1512537&r1=1512536&r2=1512537&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/impl/DefaultFileMonitor.java
Fri Aug  9 23:44:13 2013
@@ -388,7 +388,7 @@ public class DefaultFileMonitor implemen
 
                 if (getChecksPerRun() > 0)
                 {
-                    if (iterFileNames % getChecksPerRun() == 0)
+                    if (((iterFileNames + 1) % getChecksPerRun()) == 0)
                     {
                         try
                         {



Mime
View raw message