drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [1/3] drill git commit: DRILL-2533: Use Math.round() instead of casting to long
Date Tue, 05 May 2015 01:38:25 GMT
Repository: drill
Updated Branches:
  refs/heads/master f240ac2a3 -> ac823fe8b


DRILL-2533: Use Math.round() instead of casting to long


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/800dad0c
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/800dad0c
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/800dad0c

Branch: refs/heads/master
Commit: 800dad0c5fcce99090c443726d649b4261c35079
Parents: f240ac2
Author: Sudheesh Katkam <skatkam@maprtech.com>
Authored: Mon Apr 13 10:17:14 2015 -0700
Committer: Jason Altekruse <altekrusejason@gmail.com>
Committed: Mon May 4 16:32:14 2015 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/server/rest/profile/TableBuilder.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/800dad0c/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/TableBuilder.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/TableBuilder.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/TableBuilder.java
index e91404f..7d3b322 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/TableBuilder.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/TableBuilder.java
@@ -105,7 +105,7 @@ class TableBuilder {
   }
 
   public void appendNanos(final long p, final String link) {
-    appendMillis((long) (p / 1000.0 / 1000.0), link);
+    appendMillis(Math.round(p / 1000.0 / 1000.0), link);
   }
 
   public void appendFormattedNumber(final Number n, final String link) {


Mime
View raw message