test/jdk/java/util/concurrent/atomic/DoubleAdderDemo.java
changeset 58138 1e4270f875ee
parent 47216 71c04702a3d5
--- a/test/jdk/java/util/concurrent/atomic/DoubleAdderDemo.java	Sat Sep 14 11:26:26 2019 -0700
+++ b/test/jdk/java/util/concurrent/atomic/DoubleAdderDemo.java	Sat Sep 14 11:26:26 2019 -0700
@@ -103,8 +103,8 @@
         long total = (long)nthreads * incs;
         if (sum != (double)total)
             throw new Error(sum + " != " + total);
-        double secs = (double)time / (1000L * 1000 * 1000);
-        long rate = total * (1000L) / time;
+        double secs = (double)time / 1000_000_000L;
+        long rate = total * 1000L / time;
         System.out.printf("threads:%3d  Time: %7.3fsec  Incs per microsec: %4d\n",
                           nthreads, secs, rate);
     }