aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Feng <karenfeng.us@gmail.com>2013-07-11 17:31:59 -0700
committerKaren Feng <karenfeng.us@gmail.com>2013-07-11 17:31:59 -0700
commit5c67ca027834582bcd6cdd55baee5fd74e743a71 (patch)
treecb4cc958a6f91ae37b8543afbed2c288303f330b
parent6d054487bf4c9e9aa9033187f73e4e9d8366bc37 (diff)
downloadspark-5c67ca027834582bcd6cdd55baee5fd74e743a71.tar.gz
spark-5c67ca027834582bcd6cdd55baee5fd74e743a71.tar.bz2
spark-5c67ca027834582bcd6cdd55baee5fd74e743a71.zip
Remove "Bytes" in lieu of String notation
-rw-r--r--core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala10
1 files changed, 4 insertions, 6 deletions
diff --git a/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala b/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
index 4e7f86d77a..ccd55c1ce4 100644
--- a/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
+++ b/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala
@@ -95,24 +95,22 @@ class WorkerWebUI(val worker: Worker, val workDir: File, requestedPort: Option[I
<a href={"?appId=%s&executorId=%s&logType=%s&offset=%s&byteLength=%s"
.format(appId, executorId, logType, math.max(startByte-byteLength, 0),
byteLength)}>
- <button>Previous {Utils.memoryBytesToString(math.min(byteLength, startByte))} Bytes
- </button>
+ <button>Previous {Utils.memoryBytesToString(math.min(byteLength, startByte))}</button>
</a>
}
else {
- <button disabled="disabled">Previous 0 Bytes</button>
+ <button disabled="disabled">Previous 0 B</button>
}
val nextButton =
if (endByte < logLength) {
<a href={"?appId=%s&executorId=%s&logType=%s&offset=%s&byteLength=%s".
format(appId, executorId, logType, endByte, byteLength)}>
- <button>Next {Utils.memoryBytesToString(math.min(byteLength, logLength-endByte))} Bytes
- </button>
+ <button>Next {Utils.memoryBytesToString(math.min(byteLength, logLength-endByte))}</button>
</a>
}
else {
- <button disabled="disabled">Next 0 Bytes</button>
+ <button disabled="disabled">Next 0 B</button>
}
val content =