rabbah commented on code in PR #5396:
URL: https://github.com/apache/openwhisk/pull/5396#discussion_r1169417809
##########
common/scala/src/main/scala/org/apache/openwhisk/common/AverageRingBuffer.scala:
##########
@@ -32,18 +32,12 @@ object AverageRingBuffer {
class AverageRingBuffer(private val maxSize: Int) {
private var elements = Vector.empty[Double]
private var sum = 0.0
- private var max = 0.0
- private var min = 0.0
def nonEmpty: Boolean = elements.nonEmpty
def average: Double = {
val size = elements.size
Review Comment:
any chance `size` is 0?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]