From 5c67ca027834582bcd6cdd55baee5fd74e743a71 Mon Sep 17 00:00:00 2001 From: Karen Feng <karenfeng.us@gmail.com> Date: Thu, 11 Jul 2013 17:31:59 -0700 Subject: [PATCH] Remove "Bytes" in lieu of String notation --- .../scala/spark/deploy/worker/ui/WorkerWebUI.scala | 10 ++++------ 1 file 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 = -- GitLab