Skip to content

Commit

Permalink
fix scala style
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackNiuza committed Mar 18, 2014
1 parent f20701e commit 3b072e1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,14 @@ private[spark] class StageTable(val stages: Seq[StageInfo], val parent: JobProgr
val description = listener.stageIdToDescription.get(s.stageId)
.map(d => <div><em>{d}</em></div><div>{nameLink}</div>).getOrElse(nameLink)
val finishTime = s.completionTime.getOrElse(System.currentTimeMillis())
val duration = s.submissionTime.map(t => if(finishTime > t) finishTime - t else System.currentTimeMillis() - t)
val duration = s.submissionTime.map {
case t =>
if (finishTime > t) {
finishTime - t
} else {
System.currentTimeMillis() - t
}
}

<tr>
<td>{s.stageId}</td>
Expand Down

0 comments on commit 3b072e1

Please sign in to comment.