You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/04/06 11:29:02 UTC

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

Repository: camel
Updated Branches:
  refs/heads/master cdbe9fde5 -> 6ec56e31a


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/6ec56e31
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6ec56e31
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6ec56e31

Branch: refs/heads/master
Commit: 6ec56e31a12a492519b9d0b5104138160f14492b
Parents: cdbe9fd
Author: Andrea Cosentino <an...@gmail.com>
Authored: Wed Apr 6 11:27:46 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Wed Apr 6 11:27:46 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/6ec56e31/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();
                 }
             }