Browse Source

fix bug 34941

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278293 13f79535-47bb-0310-9956-ffa450edef68
master
Steven M. Cohen 20 years ago
parent
commit
fd1af1a4ac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -1722,9 +1722,9 @@ public class FTP
long localTimestamp = localFile.lastModified(); long localTimestamp = localFile.lastModified();


if (this.action == SEND_FILES) { if (this.action == SEND_FILES) {
return remoteTimestamp + timeDiffMillis > localTimestamp;
return remoteTimestamp + timeDiffMillis >= localTimestamp;
} else { } else {
return localTimestamp > remoteTimestamp + timeDiffMillis;
return localTimestamp >= remoteTimestamp + timeDiffMillis;
} }
} }




Loading…
Cancel
Save