You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by da...@apache.org on 2016/02/06 07:41:51 UTC

spark git commit: [HOTFIX] fix float part of avgRate

Repository: spark
Updated Branches:
  refs/heads/master 6883a5120 -> 4f28291f8


[HOTFIX] fix float part of avgRate


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/4f28291f
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/4f28291f
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/4f28291f

Branch: refs/heads/master
Commit: 4f28291f851b9062da3941e63de4eabb0c77f5d0
Parents: 6883a51
Author: Davies Liu <da...@gmail.com>
Authored: Fri Feb 5 22:40:40 2016 -0800
Committer: Davies Liu <da...@gmail.com>
Committed: Fri Feb 5 22:40:40 2016 -0800

----------------------------------------------------------------------
 core/src/main/scala/org/apache/spark/util/Benchmark.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/4f28291f/core/src/main/scala/org/apache/spark/util/Benchmark.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/util/Benchmark.scala b/core/src/main/scala/org/apache/spark/util/Benchmark.scala
index d1699f5..1bf6f82 100644
--- a/core/src/main/scala/org/apache/spark/util/Benchmark.scala
+++ b/core/src/main/scala/org/apache/spark/util/Benchmark.scala
@@ -124,7 +124,7 @@ private[spark] object Benchmark {
     }
     val best = runTimes.min
     val avg = runTimes.sum / iters
-    Result(avg / 1000000, num / (best / 1000), best / 1000000)
+    Result(avg / 1000000.0, num / (best / 1000.0), best / 1000000.0)
   }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org