Skip to content

Commit 0940d61

Browse files
committed
Style updates based on Andrew's review
1 parent ef05ccd commit 0940d61

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

core/src/main/resources/org/apache/spark/ui/static/table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/* Adds background colors to stripe table rows. This is necessary (instead of using css or the
1919
* table striping provided by bootstrap) to appropriately stripe tables with hidden rows. */
20-
function stripeTables(){
20+
function stripeTables() {
2121
$("table.table-striped-custom").each(function() {
2222
$(this).find("tr:not(:hidden)").each(function (index) {
2323
if (index % 2 == 1) {

core/src/main/scala/org/apache/spark/ui/UIUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private[spark] object UIUtils extends Logging {
272272
}
273273

274274
val headerRow: Seq[Node] = {
275-
headers.view.zipWithIndex.map{ x =>
275+
headers.view.zipWithIndex.map { x =>
276276
<th width={colWidthAttr} class={getClass(x._2)}>{getHeaderContent(x._1)}</th>
277277
}
278278
}

core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private[ui] class StagePage(parent: JobProgressTab) extends WebUIPage("stage") {
139139
val accumulableTable = UIUtils.listingTable(accumulableHeaders, accumulableRow,
140140
accumulables.values.toSeq)
141141

142-
val taskHeadersAndClasses: Seq[(String, String)] =
142+
val taskHeadersAndCssClasses: Seq[(String, String)] =
143143
Seq(
144144
("Index", ""), ("ID", ""), ("Attempt", ""), ("Status", ""), ("Locality Level", ""),
145145
("Executor ID / Host", ""), ("Launch Time", ""), ("Duration", ""), ("Accumulators", ""),
@@ -154,11 +154,11 @@ private[ui] class StagePage(parent: JobProgressTab) extends WebUIPage("stage") {
154154
else Nil} ++
155155
Seq(("Errors", ""))
156156

157-
val unzipped = taskHeadersAndClasses.unzip
157+
val unzipped = taskHeadersAndCssClasses.unzip
158158

159159
val taskTable = UIUtils.listingTable(
160160
unzipped._1, taskRow(hasInput, hasShuffleRead, hasShuffleWrite, hasBytesSpilled), tasks,
161-
headerClasses=unzipped._2)
161+
headerClasses = unzipped._2)
162162
// Excludes tasks which failed and have incomplete metrics
163163
val validTasks = tasks.filter(t => t.taskInfo.status == "SUCCESS" && t.taskMetrics.isDefined)
164164

0 commit comments

Comments
 (0)