Skip to content

Commit

Permalink
bugfix: "Duration" in "Active Stages" in stages page
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackNiuza committed Mar 18, 2014
1 parent e7423d4 commit f20701e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ 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 => finishTime - t)
val duration = s.submissionTime.map(t => if(finishTime > t) finishTime - t else System.currentTimeMillis() - t)

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

0 comments on commit f20701e

Please sign in to comment.