Skip to content

Commit b286dc0

Browse files
authored
fix: Fix PacketCacher stats aggregation. (#2019)
1 parent 0ad3fc6 commit b286dc0

File tree

1 file changed

+2
-1
lines changed
  • jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/transform/node

1 file changed

+2
-1
lines changed

jitsi-media-transform/src/main/kotlin/org/jitsi/nlj/transform/node/PacketCacher.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class PacketCacher : ObserverNode("Packet cache") {
3737

3838
override fun getNodeStats(): NodeStatsBlock {
3939
return super.getNodeStats().apply {
40-
addBlock(packetCache.getNodeStats())
40+
// Put the values directly in the node stats and not inside a block to make aggregation work correctly.
41+
aggregate(packetCache.getNodeStats())
4142
}
4243
}
4344
}

0 commit comments

Comments
 (0)