Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/170#discussion_r10736249
--- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
@@ -106,7 +106,9 @@ 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
--- End diff --
two space indent here
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---