Commit db231b3a by Tomasz Ciesielczyk

bug fix

parent b0eb163e
package psnc.m2dc.rtm.commands.java
val APP_VERSION = "1.0.646_62289"
\ No newline at end of file
val APP_VERSION = "1.0.646_62715"
\ No newline at end of file
package psnc.m2dc.rtm.client
const val APP_VERSION = "1.1.646_62289"
\ No newline at end of file
const val APP_VERSION = "1.1.646_62715"
\ No newline at end of file
......@@ -369,7 +369,7 @@ class ComponentPowerModel(val name: String, private val perfList: List<Double>,
private fun middlePerf(): Double {
val avgPerf = this.listActionPerfLvls().average()
val middlePerfValue = this.listActionPerfLvls().minBy { it - avgPerf }!!
val middlePerfValue = this.listActionPerfLvls().minBy { Math.abs(it - avgPerf) }!!
return middlePerfValue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment