srowen commented on a change in pull request #35930:
URL: https://github.com/apache/spark/pull/35930#discussion_r840621537



##########
File path: 
streaming/src/main/scala/org/apache/spark/streaming/ui/StreamingPage.scala
##########
@@ -64,7 +64,7 @@ private[ui] class RecordRateUIData(val data: Seq[(Long, 
Double)]) {
 
   val avg: Option[Double] = if (data.isEmpty) None else 
Some(data.map(_._2).sum / data.size)
 
-  val formattedAvg: String = avg.map(_.formatted("%.2f")).getOrElse("-")
+  val formattedAvg: String = avg.map("%.2f".format(_)).getOrElse("-")

Review comment:
       Ah OK nevermind




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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to