Kimahriman commented on a change in pull request #32214:
URL: https://github.com/apache/spark/pull/32214#discussion_r616179101
##########
File path: core/src/main/scala/org/apache/spark/ui/UIUtils.scala
##########
@@ -464,9 +464,10 @@ private[spark] object UIUtils extends Logging {
val completeWidth = "width: %s%%".format(ratio)
// started + completed can be > total when there are speculative tasks
val boundedStarted = math.min(started, total - completed)
- val startWidth = "width: %s%%".format((boundedStarted.toDouble/total)*100)
+ val startRatio = if (total == 0) 0.0 else
(boundedStarted.toDouble/total)*100
Review comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]