Better log

This commit is contained in:
Laurent Clouet
2017-02-22 21:33:23 +01:00
parent 7d2209a0f4
commit e883148c89

View File

@@ -582,7 +582,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
fos.close();
inStrm.close();
long end = new Date().getTime();
this.log.debug(String.format("File downloaded at %.1f kB/s", ((float) (size / 1000)) / ((float) (end - start) / 1000)));
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();
return 0;
}