Skip to content

Commit

Permalink
fix 5% increase check
Browse files Browse the repository at this point in the history
  • Loading branch information
squito committed Aug 23, 2018
1 parent 007f634 commit a6f9039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/com/cloudera/spark/MemoryMonitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,14 @@ case object Always extends PeakReporting {
case object IncrementBytes extends PeakReporting {
override def report(orig: Long, update: Long): Boolean = {
val delta = update - orig
delta > 1e7.toInt && (delta.toDouble / orig) > 1.05
delta > 1e7.toInt && (update.toDouble / orig) > 1.05
}
}

case object IncrementCounts extends PeakReporting {
override def report(orig: Long, update: Long): Boolean = {
val delta = update - orig
delta > 100.toInt && (delta.toDouble / orig) > 1.05
delta > 100 && (update.toDouble / orig) > 1.05
}
}

Expand Down

0 comments on commit a6f9039

Please sign in to comment.