averaging fixed
This commit is contained in:
@ -41,8 +41,8 @@ class MissingEventProcessor extends Processor.AProcessor {
|
||||
clientEntry.count += 1
|
||||
if (clientEntry.count >= 1) {
|
||||
clientEntry.delaySum += clientEntry.delay
|
||||
clientEntry.avgDelay = clientEntry.delaySum / clientEntry.count
|
||||
}
|
||||
clientEntry.avgDelay = clientEntry.delaySum / clientEntry.count
|
||||
this.clientMap.set(client, clientEntry)
|
||||
log.info(`Entry for ${client} updated`)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user