hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1100666 - /httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java
Date Sun, 08 May 2011 01:14:54 GMT
Author: sebb
Date: Sun May  8 01:14:53 2011
New Revision: 1100666

URL: http://svn.apache.org/viewvc?rev=1100666&view=rev
Log:
Explicit boxing

Modified:
    httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java

Modified: httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java?rev=1100666&r1=1100665&r2=1100666&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-ab/src/main/java/org/apache/http/benchmark/ResultProcessor.java
Sun May  8 01:14:53 2011
@@ -80,7 +80,7 @@ public class ResultProcessor {
         printAndAppend(sb,"\nServer Software:\t\t" + stats.getServerName());
         printAndAppend(sb, "Server Hostname:\t\t" + host.getHostName());
         printAndAppend(sb, "Server Port:\t\t\t" +
-            (host.getPort() > 0 ? host.getPort() : uri.startsWith("https") ? "443" : "80")
+ "\n");
+            (host.getPort() > 0 ? Integer.valueOf(host.getPort()) : uri.startsWith("https")
? "443" : "80") + "\n");
         printAndAppend(sb, "Document Path:\t\t\t" + uri);
         printAndAppend(sb, "Document Length:\t\t" + stats.getContentLength() + " bytes\n");
         printAndAppend(sb, "Concurrency Level:\t\t" + workers.length);
@@ -97,7 +97,7 @@ public class ResultProcessor {
         printAndAppend(sb, "Transfer rate:\t\t\t" +
             nf2.format(totalBytesRcvd/1000/totalTimeSec) + " [Kbytes/sec] received");
         printAndAppend(sb, "\t\t\t\t" +
-            (totalBytesSent > 0 ? nf2.format(totalBytesSent/1000/totalTimeSec) : -1) +
" kb/s sent");
+            (totalBytesSent > 0 ? nf2.format(totalBytesSent/1000/totalTimeSec) : Integer.valueOf(-1))
+ " kb/s sent");
         printAndAppend(sb, "\t\t\t\t" +
             nf2.format(totalBytes/1000/totalTimeSec) + " kb/s total");
 



Mime
View raw message