Skip to content
Snippets Groups Projects
Commit 5c67ca02 authored by Karen Feng's avatar Karen Feng
Browse files

Remove "Bytes" in lieu of String notation

parent 6d054487
No related branches found
No related tags found
No related merge requests found
......@@ -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 =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment