Improvement: add a text ui who display info in a single line

This commit is contained in:
Laurent Clouet
2014-11-20 17:50:23 +00:00
parent 422a9e74c8
commit c593b23bf8
3 changed files with 75 additions and 2 deletions

View File

@@ -525,7 +525,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
fos.close();
inStrm.close();
long end = new Date().getTime();
System.out.println(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", ((float) (size / 1000)) / ((float) (end - start) / 1000)));
this.lastRequestTime = new Date().getTime();
return 0;
}