[MNG-4591] Enhance the download rate output to include downloaded file name

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@923457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2010-03-15 22:00:54 +00:00
parent d7d94af169
commit b433187006
1 changed files with 3 additions and 3 deletions

View File

@ -128,8 +128,8 @@ public abstract class AbstractMavenTransferListener
if ( contentLength >= 0 )
{
String type =
( transferEvent.getRequestType() == ArtifactTransferEvent.REQUEST_PUT ? "uploaded" : "downloaded" );
String l = contentLength >= 1024 ? toKB( contentLength ) + " KB" : contentLength + " B";
( transferEvent.getRequestType() == ArtifactTransferEvent.REQUEST_PUT ? "Uploaded" : "Downloaded" );
String len = contentLength >= 1024 ? toKB( contentLength ) + " KB" : contentLength + " B";
String throughput = "";
long duration = System.currentTimeMillis() - artifact.getTransferStartTime();
@ -140,7 +140,7 @@ public abstract class AbstractMavenTransferListener
throughput = " at " + format.format( kbPerSec ) + " KB/sec";
}
out.println( l + " " + type + throughput );
out.println( type + ": " + artifact.getUrl() + " (" + len + throughput + ")" );
}
}