Skip to content

Commit ef4be38

Browse files
author
Reza Safi
committed
Small style fixes based on reviews
1 parent 4659f4a commit ef4be38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/executor/ProcfsMetricsGetter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ private[spark] class ProcfsMetricsGetter(
174174
// http://man7.org/linux/man-pages/man5/proc.5.html
175175
try {
176176
val pidDir = new File(procfsDir, pid.toString)
177-
Utils.tryWithResource( new InputStreamReader(
177+
Utils.tryWithResource(new InputStreamReader(
178178
new FileInputStream(
179179
new File(pidDir, procfsStatFile)), Charset.forName("UTF-8"))) { fReader =>
180180
Utils.tryWithResource( new BufferedReader(fReader)) { in =>
181181
val procInfo = in.readLine
182182
val procInfoSplit = procInfo.split(" ")
183183
val vmem = procInfoSplit(22).toLong
184-
val rssMem = procInfoSplit(23).toLong*pageSize
184+
val rssMem = procInfoSplit(23).toLong * pageSize
185185
if (procInfoSplit(1).toLowerCase(Locale.US).contains("java")) {
186186
allMetrics.copy(
187187
jvmVmemTotal = allMetrics.jvmVmemTotal + vmem,

0 commit comments

Comments
 (0)