Skip to content

Commit

Permalink
fix a bug in avgRate
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Feb 4, 2016
1 parent 8f074ab commit 53a2dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/util/Benchmark.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 53a2dd4

Please sign in to comment.