Improves the accuracy of the Event memory counter.

This commit is contained in:
Vitor Pamplona
2024-08-06 15:35:14 -04:00
parent 71b45b96fb
commit e5328d7975
23 changed files with 172 additions and 39 deletions

View File

@@ -30,14 +30,14 @@ object RelayStats {
fun addBytesReceived(
url: String,
bytesUsedInMemory: Int,
bytesUsedInMemory: Long,
) {
get(url).addBytesReceived(bytesUsedInMemory)
}
fun addBytesSent(
url: String,
bytesUsedInMemory: Int,
bytesUsedInMemory: Long,
) {
get(url).addBytesSent(bytesUsedInMemory)
}
@@ -102,11 +102,11 @@ class RelayStat(
messages.put(debugMessage, debugMessage)
}
fun addBytesReceived(bytesUsedInMemory: Int) {
fun addBytesReceived(bytesUsedInMemory: Long) {
receivedBytes += bytesUsedInMemory
}
fun addBytesSent(bytesUsedInMemory: Int) {
fun addBytesSent(bytesUsedInMemory: Long) {
sentBytes += bytesUsedInMemory
}