camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: CAMEL-9820: SFTP readLock=changed does not work with readLockMinAge option
Date Wed, 06 Apr 2016 09:40:08 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x aa4d4b738 -> 9d3895759


CAMEL-9820: SFTP readLock=changed does not work with readLockMinAge option


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9d389575
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9d389575
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9d389575

Branch: refs/heads/camel-2.17.x
Commit: 9d3895759f213b93cc7e79686b4e4f48cc23c666
Parents: aa4d4b7
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Wed Apr 6 11:27:46 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Wed Apr 6 11:30:27 2016 +0200

----------------------------------------------------------------------
 .../file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9d389575/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
index 5e21dd1..165f1bb 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/strategy/SftpChangedExclusiveReadLockStrategy.java
@@ -83,7 +83,7 @@ public class SftpChangedExclusiveReadLockStrategy implements GenericFileExclusiv
             LOG.trace("List files {} found {} files", file.getAbsoluteFilePath(), files.size());
             for (ChannelSftp.LsEntry f : files) {
                 if (f.getFilename().equals(file.getFileNameOnly())) {
-                    newLastModified = f.getAttrs().getMTime();
+                    newLastModified = f.getAttrs().getMTime() * 1000;
                     newLength = f.getAttrs().getSize();
                 }
             }


Mime
View raw message