Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2837#discussion_r19031103
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StageTable.scala ---
    @@ -179,8 +182,21 @@ private[ui] class StageTableBase(
         <td sorttable_customkey={inputRead.toString}>{inputReadWithUnit}</td>
         <td 
sorttable_customkey={shuffleRead.toString}>{shuffleReadWithUnit}</td>
         <td 
sorttable_customkey={shuffleWrite.toString}>{shuffleWriteWithUnit}</td>
    +
    +
       }
     
    +  /** Estimate the time left based on task completion rate and remaining 
tasks */
    +   def estimateTime(total:Long, completed:Long, duration:Long) = {
    +   if(total==completed)  {"Done" }
    +   val rate = completed.toFloat/duration.toFloat //time per task
    +   val remaining=total.toFloat-completed.toFloat
    +   val estimate=remaining*rate
    +   UIUtils.formatDuration(estimate.toLong*1000)//convert to millis
    +  }
    +
    +
    +
    --- End diff --
    
    Please remove these empty lines here and other places


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

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

Reply via email to