This closes #91 pull request at github/apache/antmaster
@@ -441,6 +441,7 @@ Vladislav Bauer | |||||
Volker Leidl | Volker Leidl | ||||
Waldek Herka | Waldek Herka | ||||
Wang Weijun | Wang Weijun | ||||
Wenjing Wang | |||||
Will Wang | Will Wang | ||||
William Bernardet | William Bernardet | ||||
William Ferguson | William Ferguson | ||||
@@ -56,6 +56,10 @@ Fixed bugs: | |||||
actual address could potentially be unreachable. This is now fixed | actual address could potentially be unreachable. This is now fixed | ||||
and the resolved address is actually checked for reachability. | and the resolved address is actually checked for reachability. | ||||
* Fixes an issue where scp transfer completion tracking wasn't being | |||||
triggered for 100% completion. | |||||
Github Pull Request #91 | |||||
Other changes: | Other changes: | ||||
-------------- | -------------- | ||||
@@ -1815,6 +1815,10 @@ | |||||
<first>Wang</first> | <first>Wang</first> | ||||
<last>Weijun</last> | <last>Weijun</last> | ||||
</name> | </name> | ||||
<name> | |||||
<first>Wenjing</first> | |||||
<last>Wang</last> | |||||
</name> | |||||
<name> | <name> | ||||
<first>Will</first> | <first>Will</first> | ||||
<last>Wang</last> | <last>Wang</last> | ||||
@@ -286,15 +286,14 @@ public class ScpFromMessage extends AbstractSshMessage { | |||||
fos.write(buf, 0, length); | fos.write(buf, 0, length); | ||||
filesize -= length; | filesize -= length; | ||||
totalLength += length; | totalLength += length; | ||||
if (filesize == 0) { | |||||
break; | |||||
} | |||||
if (trackProgress) { | if (trackProgress) { | ||||
percentTransmitted = trackProgress(initFilesize, | percentTransmitted = trackProgress(initFilesize, | ||||
totalLength, | totalLength, | ||||
percentTransmitted); | percentTransmitted); | ||||
} | } | ||||
if (filesize == 0) { | |||||
break; | |||||
} | |||||
} | } | ||||
} finally { | } finally { | ||||
final long endTime = System.currentTimeMillis(); | final long endTime = System.currentTimeMillis(); | ||||