Skip to content

Commit

Permalink
remove extra space and add 'Alive' prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichao-li committed May 26, 2015
1 parent 1e8eb06 commit 99b6768
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {

val workerHeaders = Seq("Worker Id", "Address", "State", "Cores", "Memory")
val workers = state.workers.sortBy(_.id)
val aliveWorkers = state.workers.filter(_.state == WorkerState.ALIVE )
val aliveWorkers = state.workers.filter(_.state == WorkerState.ALIVE)
val workerTable = UIUtils.listingTable(workerHeaders, workerRow, workers)

val appHeaders = Seq("Application ID", "Name", "Cores", "Memory per Node", "Submitted Time",
Expand Down Expand Up @@ -109,10 +109,10 @@ private[ui] class MasterPage(parent: MasterWebUI) extends WebUIPage("") {
</li>
}.getOrElse { Seq.empty }
}
<li><strong>Workers:</strong> {aliveWorkers.size}</li>
<li><strong>Cores:</strong> {aliveWorkers.map(_.cores).sum} Total,
<li><strong>Alive Workers:</strong> {aliveWorkers.size}</li>
<li><strong>Alive Cores:</strong> {aliveWorkers.map(_.cores).sum} Total,
{aliveWorkers.map(_.coresUsed).sum} Used</li>
<li><strong>Memory:</strong>
<li><strong>Alive Memory:</strong>
{Utils.megabytesToString(aliveWorkers.map(_.memory).sum)} Total,
{Utils.megabytesToString(aliveWorkers.map(_.memoryUsed).sum)} Used</li>
<li><strong>Applications:</strong>
Expand Down

0 comments on commit 99b6768

Please sign in to comment.