logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1610309 - /logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java
Date Sun, 13 Jul 2014 22:05:29 GMT
Author: mattsicker
Date: Sun Jul 13 22:05:29 2014
New Revision: 1610309

URL: http://svn.apache.org/r1610309
Log:
Use Long.signum instead of Math.signum.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java?rev=1610309&r1=1610308&r2=1610309&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java
Sun Jul 13 22:05:29 2014
@@ -126,8 +126,7 @@ public class PerfTestDriver {
         @Override
         public int compareTo(final Setup other) {
             // largest ops/sec first
-            return (int) Math.signum(other.stats.averageOpsPerSec
-                    - stats.averageOpsPerSec);
+            return Long.signum(other.stats.averageOpsPerSec - stats.averageOpsPerSec);
         }
 
         public String description() {



Mime
View raw message