abellina commented on a change in pull request #24419: [SPARK-25719] : Search 
functionality in datatables in stages page sho…
URL: https://github.com/apache/spark/pull/24419#discussion_r277084734
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/ui/UIUtils.scala
 ##########
 @@ -145,6 +145,16 @@ private[spark] object UIUtils extends Logging {
     }
   }
 
+  def formatBytes(bytes: Long): String = {
+    if (bytes == 0) {
+      return "0.0 B"
+  }
 
 Review comment:
   nit, indentation.

----------------------------------------------------------------
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]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to