diff options
author | Karen Feng <karenfeng.us@gmail.com> | 2013-07-10 13:24:26 -0700 |
---|---|---|
committer | Karen Feng <karenfeng.us@gmail.com> | 2013-07-10 13:24:26 -0700 |
commit | 0d4580360ba4bbcd2f73877743d746c071a92e34 (patch) | |
tree | 42618447fa36df3c6801e5389b95d705d731baa1 /core/src/main | |
parent | 04263e4d4609355d8e0779dea472fbb1aff5ef4f (diff) | |
download | spark-0d4580360ba4bbcd2f73877743d746c071a92e34.tar.gz spark-0d4580360ba4bbcd2f73877743d746c071a92e34.tar.bz2 spark-0d4580360ba4bbcd2f73877743d746c071a92e34.zip |
Fixed docstring of offsetBytes to match params and wrapped for 100+ character lines
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/spark/Utils.scala | 2 | ||||
-rw-r--r-- | core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/main/scala/spark/Utils.scala b/core/src/main/scala/spark/Utils.scala index c5627c8419..1c5af2700a 100644 --- a/core/src/main/scala/spark/Utils.scala +++ b/core/src/main/scala/spark/Utils.scala @@ -621,7 +621,7 @@ private object Utils extends Logging { callSiteInfo.firstUserLine) } - /** Return a string containing part of a file from byte 'a' to 'b'. */ + /** Return a string containing part of a file from byte 'start' to 'end'. */ def offsetBytes(path: String, start: Long, end: Long): String = { val file = new File(path) val length = file.length() 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 24356b0f63..1f4ba5de60 100644 --- a/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala +++ b/core/src/main/scala/spark/deploy/worker/ui/WorkerWebUI.scala @@ -91,7 +91,8 @@ class WorkerWebUI(val worker: ActorRef, val workDir: File, requestedPort: Option val backButton = if (fixedOffset > 0) { <a href={"?appId=%s&executorId=%s&logType=%s&offset=%s&byteLength=%s" - .format(appId, executorId, logType, math.max(fixedOffset-logPageLength, 0), logPageLength)}> + .format(appId, executorId, logType, math.max(fixedOffset-logPageLength, 0), + logPageLength)}> <button style="float:left">back</button> </a> } |