Skip to content

Commit 190cf57

Browse files
authored
Fix incorrect bitrate performance metric. (#5986)
* Fix incorrect bitrateperformance metric. * Average all instances.
1 parent 38ac67f commit 190cf57

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/services/streaming/streaming.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3525,6 +3525,10 @@ export class StreamingService
35253525
dataOutput += instance.dataOutput;
35263526
}
35273527

3528+
// TODO: Add UI to show bitrate by display but for now average the all instances, which is more accurate
3529+
// than only showing the horizontal display's bitrate in dual output mode
3530+
kbitsPerSec = Math.round(kbitsPerSec / Object.keys(this.contexts).length);
3531+
35283532
return { droppedFrames, totalFrames, kbitsPerSec, dataOutput };
35293533
}
35303534

0 commit comments

Comments
 (0)