From ba07d662e41a9541c8ac7737e0720cfdc58e23d5 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Fri, 17 Jan 2014 10:50:56 -0500 Subject: [PATCH] Correctly convert sftp time (seconds) to EFS time (milliseconds). Signed-off-by: Greg Watson --- .../internal/jsch/core/commands/AbstractRemoteCommand.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.remote.jsch.core/src/org/eclipse/remote/internal/jsch/core/commands/AbstractRemoteCommand.java b/bundles/org.eclipse.remote.jsch.core/src/org/eclipse/remote/internal/jsch/core/commands/AbstractRemoteCommand.java index 1233774ad32..b4da5dd9e47 100755 --- a/bundles/org.eclipse.remote.jsch.core/src/org/eclipse/remote/internal/jsch/core/commands/AbstractRemoteCommand.java +++ b/bundles/org.eclipse.remote.jsch.core/src/org/eclipse/remote/internal/jsch/core/commands/AbstractRemoteCommand.java @@ -50,15 +50,18 @@ public abstract class AbstractRemoteCommand { fMonitor = monitor; } + @Override public boolean count(long count) { fMonitor.worked((int) count); return !(fMonitor.isCanceled()); } + @Override public void end() { fMonitor.done(); } + @Override public void init(int op, String src, String dest, long max) { String srcFile = new Path(src).lastSegment(); String desc = srcFile; @@ -80,6 +83,7 @@ public abstract class AbstractRemoteCommand { * * @see java.util.concurrent.Callable#call() */ + @Override public abstract T1 call() throws JSchException, SftpException, IOException; private void finalizeCmdInThread() { @@ -154,6 +158,7 @@ public abstract class AbstractRemoteCommand { * * @see java.util.concurrent.Callable#call() */ + @Override public abstract T1 call() throws JSchException, IOException; private void finalizeCmdInThread() { @@ -297,7 +302,7 @@ public abstract class AbstractRemoteCommand { // Ignore } } - fileInfo.setLastModified(attrs.getMTime()); + fileInfo.setLastModified(attrs.getMTime() * 1000L); fileInfo.setLength(attrs.getSize()); return fileInfo; }