1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 18:35:32 +02:00

Correctly convert sftp time (seconds) to EFS time (milliseconds).

Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2014-01-17 10:50:56 -05:00
parent c6b2cfc805
commit ba07d662e4

View file

@ -50,15 +50,18 @@ public abstract class AbstractRemoteCommand<T> {
fMonitor = monitor; fMonitor = monitor;
} }
@Override
public boolean count(long count) { public boolean count(long count) {
fMonitor.worked((int) count); fMonitor.worked((int) count);
return !(fMonitor.isCanceled()); return !(fMonitor.isCanceled());
} }
@Override
public void end() { public void end() {
fMonitor.done(); fMonitor.done();
} }
@Override
public void init(int op, String src, String dest, long max) { public void init(int op, String src, String dest, long max) {
String srcFile = new Path(src).lastSegment(); String srcFile = new Path(src).lastSegment();
String desc = srcFile; String desc = srcFile;
@ -80,6 +83,7 @@ public abstract class AbstractRemoteCommand<T> {
* *
* @see java.util.concurrent.Callable#call() * @see java.util.concurrent.Callable#call()
*/ */
@Override
public abstract T1 call() throws JSchException, SftpException, IOException; public abstract T1 call() throws JSchException, SftpException, IOException;
private void finalizeCmdInThread() { private void finalizeCmdInThread() {
@ -154,6 +158,7 @@ public abstract class AbstractRemoteCommand<T> {
* *
* @see java.util.concurrent.Callable#call() * @see java.util.concurrent.Callable#call()
*/ */
@Override
public abstract T1 call() throws JSchException, IOException; public abstract T1 call() throws JSchException, IOException;
private void finalizeCmdInThread() { private void finalizeCmdInThread() {
@ -297,7 +302,7 @@ public abstract class AbstractRemoteCommand<T> {
// Ignore // Ignore
} }
} }
fileInfo.setLastModified(attrs.getMTime()); fileInfo.setLastModified(attrs.getMTime() * 1000L);
fileInfo.setLength(attrs.getSize()); fileInfo.setLength(attrs.getSize());
return fileInfo; return fileInfo;
} }