Last download status could be 99% instead of 100%

This commit is contained in:
Laurent Clouet
2019-09-05 13:16:28 +02:00
parent 9065a1aef6
commit 86a02015a2

View File

@@ -479,6 +479,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
} }
fos.close(); fos.close();
inStrm.close(); inStrm.close();
gui_.status(String.format(status_, 100));
long end = new Date().getTime(); long end = new Date().getTime();
this.log.debug(String.format("File downloaded at %.1f kB/s, written %d B", ((float) (size / 1000)) / ((float) (end - start) / 1000), written)); this.log.debug(String.format("File downloaded at %.1f kB/s, written %d B", ((float) (size / 1000)) / ((float) (end - start) / 1000), written));
this.lastRequestTime = new Date().getTime(); this.lastRequestTime = new Date().getTime();